generated

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	Cache struct {
		Domain func(childComplexity int) int
		Exp    func(childComplexity int) int
		Key    func(childComplexity int) int
		Value  func(childComplexity int) int
	}

	Entity struct {
		Domain func(childComplexity int) int
		Key    func(childComplexity int) int
		Type   func(childComplexity int) int
		Values func(childComplexity int) int
	}

	Event struct {
		Claims func(childComplexity int) int
		Entity func(childComplexity int) int
		ID     func(childComplexity int) int
		Method func(childComplexity int) int
		Time   func(childComplexity int) int
	}

	Mutation struct {
		BroadcastMessage func(childComplexity int, input model.Message) int
		DelCache         func(childComplexity int, input model.CacheRef) int
		DelEntity        func(childComplexity int, input model.EntityRef) int
		EditEntity       func(childComplexity int, input model.EntityInput) int
		LockMutex        func(childComplexity int, input model.Mutex) int
		RevertEntity     func(childComplexity int, input model.EventRef) int
		SetCache         func(childComplexity int, input model.CacheInput) int
		SetEntity        func(childComplexity int, input model.EntityInput) int
		UnlockMutex      func(childComplexity int, input model.MutexRef) int
	}

	PeerMessage struct {
		Body    func(childComplexity int) int
		Channel func(childComplexity int) int
		Claims  func(childComplexity int) int
		Domain  func(childComplexity int) int
		ID      func(childComplexity int) int
		Time    func(childComplexity int) int
		Type    func(childComplexity int) int
	}

	Query struct {
		GetCache       func(childComplexity int, input model.CacheRef) int
		GetEntity      func(childComplexity int, input model.EntityRef) int
		GetEvent       func(childComplexity int, input model.EventRef) int
		SearchEntities func(childComplexity int, input model.SearchEntityOpts) int
		SearchEvents   func(childComplexity int, input model.SearchEventOpts) int
	}

	Subscription struct {
		StreamEvents   func(childComplexity int, input model.StreamEventOpts) int
		StreamMessages func(childComplexity int, input model.StreamMessageOpts) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	SetCache(ctx context.Context, input model.CacheInput) (*string, error)
	DelCache(ctx context.Context, input model.CacheRef) (*string, error)
	SetEntity(ctx context.Context, input model.EntityInput) (*string, error)
	DelEntity(ctx context.Context, input model.EntityRef) (*string, error)
	EditEntity(ctx context.Context, input model.EntityInput) (*model.Entity, error)
	RevertEntity(ctx context.Context, input model.EventRef) (*model.Entity, error)
	LockMutex(ctx context.Context, input model.Mutex) (*string, error)
	UnlockMutex(ctx context.Context, input model.MutexRef) (*string, error)
	BroadcastMessage(ctx context.Context, input model.Message) (*string, error)
}

type QueryResolver

type QueryResolver interface {
	GetEntity(ctx context.Context, input model.EntityRef) (*model.Entity, error)
	GetEvent(ctx context.Context, input model.EventRef) (*model.Event, error)
	GetCache(ctx context.Context, input model.CacheRef) (*model.Cache, error)
	SearchEvents(ctx context.Context, input model.SearchEventOpts) ([]*model.Event, error)
	SearchEntities(ctx context.Context, input model.SearchEntityOpts) ([]*model.Entity, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
	Subscription() SubscriptionResolver
}

type SubscriptionResolver

type SubscriptionResolver interface {
	StreamEvents(ctx context.Context, input model.StreamEventOpts) (<-chan *model.Event, error)
	StreamMessages(ctx context.Context, input model.StreamMessageOpts) (<-chan *model.PeerMessage, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL