graphql_api

package
v0.0.0-...-99e5d07 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateAccountAndReturnJwtToken

func AuthenticateAccountAndReturnJwtToken(t *testing.T, email, password string) string

func CreateAccountInAuthServiceAndGetAuthToken

func CreateAccountInAuthServiceAndGetAuthToken(t *testing.T, email, password string) (string, uint32)

func CreateRequestBody

func CreateRequestBody(body interface{}) (*bytes.Reader, error)

func GenerateRandomString

func GenerateRandomString(n int) string

func HandleErrorsIfPresent

func HandleErrorsIfPresent(ID uint32) (*int, error)

func LockAccountInAuthService

func LockAccountInAuthService(t *testing.T, authnId uint32, token string) error

Types

type CreateAccountDtxRequest

type CreateAccountDtxRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type CreateAccountDtxResponse

type CreateAccountDtxResponse struct {
	Error error  `json:"error"`
	Id    uint32 `json:"id"`
}

type LockAccountDtxResponse

type LockAccountDtxResponse struct {
	Error error `json:"error"`
}

type Resolver

type Resolver struct {
	Db      *database.Db
	Logger  core_logging.ILog
	Tracer  *core_tracing.TracingEngine
	Metrics *core_metrics.CoreMetricsEngine
}

func (*Resolver) BusinessAccount

func (r *Resolver) BusinessAccount() generated.BusinessAccountResolver

BusinessAccount returns generated.BusinessAccountResolver implementation.

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 SagaRefType

type SagaRefType func(ctx context.Context) error

This file will not be regenerated automatically.

It serves as dependency injection for your app, add any dependencies you require here.

Directories

Path Synopsis
Package model is a generated protocol buffer package.
Package model is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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