Versions in this module Expand all Collapse all v0 v0.0.2 Sep 14, 2024 v0.0.1 Sep 7, 2024 Changes in this version + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + type ComplexityRoot struct + Asset struct{ ... } + Mutation struct{ ... } + Query struct{ ... } + Session struct{ ... } + SessionStats struct{ ... } + Subscription struct{ ... } + type Config struct + Complexity ComplexityRoot + Directives DirectiveRoot + Resolvers ResolverRoot + Schema *ast.Schema + type DirectiveRoot struct + type MutationResolver interface + CreateAsset func(ctx context.Context, input model.CreateAssetInput) (*model.Asset, error) + CreateSession func(ctx context.Context, input model.CreateSessionInput) (*model.Session, error) + CreateSessionFromJSON func(ctx context.Context, input model.CreateSessionJSONInput) (*model.Session, error) + TerminateSession func(ctx context.Context, sessionToken string) (*bool, error) + type QueryResolver interface + SessionStats func(ctx context.Context, sessionToken string) (*model.SessionStats, error) + type Resolver struct + Dispatcher et.Dispatcher + Log *slog.Logger + Manager et.SessionManager + func (r *Resolver) Mutation() MutationResolver + func (r *Resolver) Query() QueryResolver + func (r *Resolver) Subscription() SubscriptionResolver + type ResolverRoot interface + Mutation func() MutationResolver + Query func() QueryResolver + Subscription func() SubscriptionResolver + type Server struct + func NewServer(logger *slog.Logger, d et.Dispatcher, mgr et.SessionManager) *Server + func (s *Server) Shutdown() error + func (s *Server) Start() error + type SubscriptionResolver interface + LogMessages func(ctx context.Context, sessionToken string) (<-chan *string, error)