package models import "time" // A Post is a part of a log file. type Post struct { ID string `bson:"_id"` LogID string `bson:"logId"` Time time.Time `bson:"time"` Kind string `bson:"kind"` Nick string `bson:"nick"` Text string `bson:"text"` Position int `bson:"position"` } // IsChangeObject is an interface implementation to identify it as a valid // ChangeObject in GQL. func (*Post) IsChangeObject() { panic("this method is a dummy, and so is its caller") }