graphql

package
v0.0.0-...-5bbb7b8 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(config *service.ServerConfig) service.Server

NewServer creates a new HTTP handler for the GraphQL service.

Types

type ClientSet

type ClientSet interface {
	AllClients() []grpc.Client
}

ClientSet is a basket for all GRPC service clients.

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver is the base type for GraphQL operation resolvers.

func (*Resolver) Account

func (r *Resolver) Account() graphql.AccountResolver

Account returns a new account resolver.

func (Resolver) AllClients

func (cs Resolver) AllClients() (clients []grpc.Client)

AllClients returns a slice of all configured clients.

func (*Resolver) Mutation

func (r *Resolver) Mutation() graphql.MutationResolver

Mutation returns a new mutation resolver.

func (*Resolver) Query

func (r *Resolver) Query() graphql.QueryResolver

Query returns a new query resolver.

func (*Resolver) User

func (r *Resolver) User() graphql.UserResolver

User returns a new user resolver.

func (*Resolver) UserAccount

func (r *Resolver) UserAccount() graphql.UserAccountResolver

UserAccount returns a new user account resolver.

type Server

type Server struct {
	*mux.Router
	*service.ServerConfig
	// contains filtered or unexported fields
}

Server defines the structure of a server for the GraphQL service.

func (Server) AllClients

func (cs Server) AllClients() (clients []grpc.Client)

AllClients returns a slice of all configured clients.

func (*Server) StartServer

func (s *Server) StartServer()

StartServer provides the callback function to start the server.

Jump to

Keyboard shortcuts

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