Versions in this module Expand all Collapse all v0 v0.4.4 Aug 21, 2018 Changes in this version + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + type Chatroom struct + Messages []Message + Name string + Observers map[string]chan Message + type Config struct + Directives DirectiveRoot + Resolvers ResolverRoot + func New() Config + type DirectiveRoot struct + type Message struct + CreatedAt time.Time + CreatedBy string + ID string + Text string + type MutationResolver interface + Post func(ctx context.Context, text string, username string, roomName string) (Message, error) + type QueryResolver interface + Room func(ctx context.Context, name string) (*Chatroom, error) + type ResolverRoot interface + Mutation func() MutationResolver + Query func() QueryResolver + Subscription func() SubscriptionResolver + type SubscriptionResolver interface + MessageAdded func(ctx context.Context, roomName string) (<-chan Message, error)