the build was successful
gqlgen Squashed commit of the following: commit162ccf6bfbAuthor: Gisle Aune <dev@gisle.me> Date: Fri May 17 11:51:23 2019 +0200 The great module madness continus, now with pointers. commit7e3dc49635Author: Gisle Aune <dev@gisle.me> Date: Thu May 16 15:57:08 2019 +0200 Basic stuff, doesn't compile
22 lines
677 B
Go
22 lines
677 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
// Log is the header/session for a log file.
|
|
type Log struct {
|
|
ID string `bson:"_id"`
|
|
ShortID string `bson:"shortId"`
|
|
Date time.Time `bson:"date"`
|
|
ChannelName string `bson:"channel"`
|
|
EventName string `bson:"event,omitempty"`
|
|
Title string `bson:"title,omitempty"`
|
|
Description string `bson:"description,omitempty"`
|
|
Open bool `bson:"open"`
|
|
CharacterIDs []string `bson:"characterIds"`
|
|
}
|
|
|
|
// IsChangeObject is an interface implementation to identify it as a valid
|
|
// ChangeObject in GQL.
|
|
func (*Log) IsChangeObject() {
|
|
panic("this method is a dummy, and so is its caller")
|
|
} |