generated

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	Mutation struct {
		AcceptEmailInvite       func(childComplexity int, token string, password string) int
		AcceptPhoneInvite       func(childComplexity int, token string, password string) int
		ChangeEmail             func(childComplexity int, email string) int
		ChangePassword          func(childComplexity int, oldPassword string, newPassword string) int
		ChangePhone             func(childComplexity int, phone string) int
		ConfirmEmail            func(childComplexity int, token string) int
		ConfirmEmailChange      func(childComplexity int, token string) int
		ConfirmPhone            func(childComplexity int, token string) int
		ConfirmPhoneChange      func(childComplexity int, token string) int
		ConfirmReset            func(childComplexity int, token string, password string) int
		CreateUser              func(childComplexity int, object model.CreateUserForm) int
		DeleteUser              func(childComplexity int, id string) int
		InviteByEmail           func(childComplexity int, name string, email string) int
		InviteByPhone           func(childComplexity int, name string, phone string) int
		Logout                  func(childComplexity int) int
		ResendEmailConfirmation func(childComplexity int, email string) int
		ResendPhoneConfirmation func(childComplexity int, phone string) int
		ResetByEmail            func(childComplexity int, email string) int
		ResetByPhone            func(childComplexity int, phone string) int
		Signup                  func(childComplexity int, object model.SignupForm) int
		UpdateEmail             func(childComplexity int, id string, email string, confirm bool) int
		UpdatePassword          func(childComplexity int, id string, password string) int
		UpdatePhone             func(childComplexity int, id string, phone string, confirm bool) int
		UpdateUser              func(childComplexity int, id string, name *string, avatar *string) int
	}

	Query struct {
		Logs       func(childComplexity int, offset int, limit int) int
		Me         func(childComplexity int) int
		Refresh    func(childComplexity int) int
		Token      func(childComplexity int, username string, password string) int
		User       func(childComplexity int, id string) int
		Users      func(childComplexity int, where map[string]interface{}, orderBy []model.Object, offset int, limit int) int
		UsersCount func(childComplexity int, where map[string]interface{}) int
	}

	Log struct {
		At        func(childComplexity int) int
		Event     func(childComplexity int) int
		IPAddress func(childComplexity int) int
		UserAgent func(childComplexity int) int
		UserID    func(childComplexity int) int
	}

	Login_response struct {
		AccessToken  func(childComplexity int) int
		ID           func(childComplexity int) int
		RefreshToken func(childComplexity int) int
	}

	User struct {
		Avatar                       func(childComplexity int) int
		CreatedAt                    func(childComplexity int) int
		Data                         func(childComplexity int) int
		Email                        func(childComplexity int) int
		EmailChangeTokenSentAt       func(childComplexity int) int
		EmailChangedAt               func(childComplexity int) int
		EmailConfirmationTokenSentAt func(childComplexity int) int
		EmailConfirmed               func(childComplexity int) int
		EmailConfirmedAt             func(childComplexity int) int
		ID                           func(childComplexity int) int
		IncorrectLoginAttempts       func(childComplexity int) int
		LastIncorrectLoginAttemptAt  func(childComplexity int) int
		LastSigninAt                 func(childComplexity int) int
		Name                         func(childComplexity int) int
		NewEmail                     func(childComplexity int) int
		NewPhone                     func(childComplexity int) int
		PasswordChangedAt            func(childComplexity int) int
		Phone                        func(childComplexity int) int
		PhoneChangeTokenSentAt       func(childComplexity int) int
		PhoneChangedAt               func(childComplexity int) int
		PhoneConfirmationTokenSentAt func(childComplexity int) int
		PhoneConfirmed               func(childComplexity int) int
		PhoneConfirmedAt             func(childComplexity int) int
		RecoveryTokenSentAt          func(childComplexity int) int
		UpdatedAt                    func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	Signup(ctx context.Context, object model.SignupForm) (*model.User, error)
	ConfirmEmail(ctx context.Context, token string) (*model.User, error)
	ConfirmPhone(ctx context.Context, token string) (*model.User, error)
	InviteByEmail(ctx context.Context, name string, email string) (*model.User, error)
	InviteByPhone(ctx context.Context, name string, phone string) (*model.User, error)
	AcceptPhoneInvite(ctx context.Context, token string, password string) (*model.User, error)
	AcceptEmailInvite(ctx context.Context, token string, password string) (*model.User, error)
	CreateUser(ctx context.Context, object model.CreateUserForm) (*model.User, error)
	UpdateUser(ctx context.Context, id string, name *string, avatar *string) (*model.User, error)
	DeleteUser(ctx context.Context, id string) (*model.User, error)
	UpdateEmail(ctx context.Context, id string, email string, confirm bool) (*model.User, error)
	UpdatePhone(ctx context.Context, id string, phone string, confirm bool) (*model.User, error)
	UpdatePassword(ctx context.Context, id string, password string) (*model.User, error)
	ChangePassword(ctx context.Context, oldPassword string, newPassword string) (*model.User, error)
	ChangeEmail(ctx context.Context, email string) (*model.User, error)
	ChangePhone(ctx context.Context, phone string) (*model.User, error)
	ConfirmPhoneChange(ctx context.Context, token string) (*model.User, error)
	ConfirmEmailChange(ctx context.Context, token string) (*model.User, error)
	ResetByEmail(ctx context.Context, email string) (bool, error)
	ResetByPhone(ctx context.Context, phone string) (bool, error)
	ConfirmReset(ctx context.Context, token string, password string) (bool, error)
	ResendPhoneConfirmation(ctx context.Context, phone string) (bool, error)
	ResendEmailConfirmation(ctx context.Context, email string) (bool, error)
	Logout(ctx context.Context) (*bool, error)
}

type QueryResolver

type QueryResolver interface {
	User(ctx context.Context, id string) (*model.User, error)
	Users(ctx context.Context, where map[string]interface{}, orderBy []model.Object, offset int, limit int) ([]*model.User, error)
	Me(ctx context.Context) (*model.User, error)
	Token(ctx context.Context, username string, password string) (*model.LoginResponse, error)
	Refresh(ctx context.Context) (*model.LoginResponse, error)
	Logs(ctx context.Context, offset int, limit int) ([]*model.Log, error)
	UsersCount(ctx context.Context, where map[string]interface{}) (int, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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