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
738 B
Go
22 lines
738 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
// A File is a record of a file stored in the Space.
|
|
type File struct {
|
|
ID string `bson:"_id" json:"id"`
|
|
Time time.Time `bson:"time" json:"time"`
|
|
Kind string `bson:"kind" json:"kind"`
|
|
Public bool `bson:"public" json:"public"`
|
|
Name string `bson:"name" json:"name"`
|
|
MimeType string `bson:"mimeType" json:"mimeType"`
|
|
Size int64 `bson:"size" json:"size"`
|
|
Author string `bson:"author" json:"author"`
|
|
URL string `bson:"url,omitempty" json:"url,omitempty"`
|
|
}
|
|
|
|
// IsChangeObject is an interface implementation to identify it as a valid
|
|
// ChangeObject in GQL.
|
|
func (*File) IsChangeObject() {
|
|
panic("this method is a dummy, and so is its caller")
|
|
} |