resolver

package
v0.0.0-...-1a5deed Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CodeValidationError is the code that is returned on a validation error message
	CodeValidationError = "VALIDATION_ERROR"
)

Variables

View Source
var (
	// ErrUnauthorizedRequest is the error when the user is unauthorized
	ErrUnauthorizedRequest = errors.New("401 Unauthorized")
)

Functions

This section is empty.

Types

type Resolver

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

Resolver resolves

func NewResolver

func NewResolver(
	db database.DB,
	validator validator.Validator,
	passwordService password.Service,
	errorHandler errorhandler.ErrorHandler,
	logger logger.Logger,
	jwtService jwt.Service,
	transactionsServiceClient transactions_service.TransactionsServiceClient,
	rawRecordsServiceClient raw_records_service.RawRecordsServiceClient,
) *Resolver

NewResolver creates a new instance of the resolver

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.

Jump to

Keyboard shortcuts

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