generated

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 14 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 {
	AuthResponse struct {
		ExpirateAt func(childComplexity int) int
		JwtToken   func(childComplexity int) int
	}

	Entities struct {
		Media func(childComplexity int) int
		Tags  func(childComplexity int) int
		Urls  func(childComplexity int) int
	}

	Event struct {
		Actor      func(childComplexity int) int
		CreatedAt  func(childComplexity int) int
		EmittedAt  func(childComplexity int) int
		Entities   func(childComplexity int) int
		EventKind  func(childComplexity int) int
		ID         func(childComplexity int) int
		Message    func(childComplexity int) int
		ShareURL   func(childComplexity int) int
		SourceID   func(childComplexity int) int
		SourceName func(childComplexity int) int
		Title      func(childComplexity int) int
	}

	MediaEntity struct {
		Type func(childComplexity int) int
		URL  func(childComplexity int) int
	}

	Mutation struct {
		Emit func(childComplexity int, draft model.EventDraft) int
	}

	Person struct {
		Email      func(childComplexity int) int
		Name       func(childComplexity int) int
		Owner      func(childComplexity int) int
		Photo      func(childComplexity int) int
		ProfileURL func(childComplexity int) int
		Username   func(childComplexity int) int
	}

	Query struct {
		Login       func(childComplexity int, username string, password string) int
		SharedBoard func(childComplexity int, buffer int) int
	}

	Subscription struct {
		EventStream func(childComplexity int, filter *model.EventStreamFilter) int
	}

	URLEntity struct {
		DisplayURL func(childComplexity int) int
		URL        func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	Emit(ctx context.Context, draft model.EventDraft) (string, error)
}

type QueryResolver

type QueryResolver interface {
	Login(ctx context.Context, username string, password string) (*model.AuthResponse, error)
	SharedBoard(ctx context.Context, buffer int) ([]*supersense.Event, error)
}

type ResolverRoot

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

type SubscriptionResolver

type SubscriptionResolver interface {
	EventStream(ctx context.Context, filter *model.EventStreamFilter) (<-chan *supersense.Event, error)
}

Jump to

Keyboard shortcuts

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