graph

package
v0.0.0-...-64643be Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCtxKey

func GetCtxKey() interface{}

func GinContextFromContext

func GinContextFromContext(ctx context.Context) (*gin.Context, error)

recover *gin.Context from context.Context

func NewDirectives

func NewDirectives(logger log.Logger) generated.DirectiveRoot

Types

type CreateTodoRequest

type CreateTodoRequest struct {
	T         model.CreateTodoInput
	CreatedBy string
}

type Resolver

type Resolver struct {
	Logger             log.Logger
	GetTodoEndpoint    endpoint.Endpoint
	TodoPagesEndpoint  endpoint.Endpoint
	TodoSearchEndpoint endpoint.Endpoint
	CreateTodoEndpoint endpoint.Endpoint
	UpdateTodoEndpoint endpoint.Endpoint
}

func (*Resolver) Mutation

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

Mutation returns generated.MutationResolver implementation.

func (*Resolver) Query

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

Query returns generated.QueryResolver implementation.

type TodoSearchRequest

type TodoSearchRequest struct {
	T model.TodoSearchInput
	P model.PaginationInput
}

type UpdateTodoRequest

type UpdateTodoRequest struct {
	Id        string
	T         model.UpdateTodoInput
	UpdatedBy string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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