Versions in this module Expand all Collapse all v1 v1.3.1 Jun 13, 2019 v1.3.0 Jun 3, 2019 v1.2.0 May 29, 2019 v1.1.2 May 28, 2019 v1.1.1 May 23, 2019 v1.1.0 May 22, 2019 v1.0.0 May 22, 2019 Changes in this version + func Verify(id string) error + type AGraphNode interface + NodeID func() string + type GraphNode struct + UID string + func (gn GraphNode) NodeID() string + type ID string + func NewID() ID + func (id *ID) UnmarshalGraphQL(input interface{}) (err error) + func (id ID) ImplementsGraphQLType(name string) bool + type MutableStore interface + CloseAllSessions func(ctx context.Context, user ID) (result []string, err error) + CloseSession func(ctx context.Context, key string) (result bool, err error) + CreatePost func(ctx context.Context, creationTime time.Time, author ID, title string, ...) (result Post, err error) + CreateReaction func(ctx context.Context, creationTime time.Time, author ID, subject ID, ...) (result Reaction, err error) + CreateSession func(ctx context.Context, key string, creationTime time.Time, email string, ...) (result Session, err error) + CreateUser func(ctx context.Context, creationTime time.Time, email string, displayName string, ...) (result User, err error) + EditPost func(ctx context.Context, post ID, editor ID, newTitle *string, newContents *string) (result Post, changes struct{ ... }, err error) + EditReaction func(ctx context.Context, reaction ID, editor ID, newMessage string) (result Reaction, changes struct{ ... }, err error) + EditUser func(ctx context.Context, user ID, editor ID, newEmail *string, newPassword *string) (result User, changes struct{ ... }, err error) + type Post struct + Author *User + Contents string + Creation time.Time + ID ID + Reactions []Reaction + Title string + type Reaction struct + Author *User + Creation time.Time + Emotion emotion.Emotion + ID ID + Message string + Reactions []Reaction + Subject AGraphNode + type Session struct + Creation time.Time + Key string + User *User + type Store interface + Prepare func() error + Query func(ctx context.Context, query string, result interface{}) error + QueryVars func(ctx context.Context, query string, vars map[string]string, result interface{}) error + type User struct + Creation time.Time + DisplayName string + Email string + ID ID + Password string + Posts []Post + PublishedReactions []Reaction + Sessions []Session