Documentation ¶
Index ¶
- func NewServer(config *service.ServerConfig) service.Server
- type ClientSet
- type Resolver
- func (r *Resolver) Account() graphql.AccountResolver
- func (cs Resolver) AllClients() (clients []grpc.Client)
- func (r *Resolver) Mutation() graphql.MutationResolver
- func (r *Resolver) Query() graphql.QueryResolver
- func (r *Resolver) User() graphql.UserResolver
- func (r *Resolver) UserAccount() graphql.UserAccountResolver
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 ¶
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 ¶
AllClients returns a slice of all configured clients.
func (*Server) StartServer ¶
func (s *Server) StartServer()
StartServer provides the callback function to start the server.
Click to show internal directories.
Click to hide internal directories.