generated

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 15 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 {
	Access struct {
		IPAddress func(childComplexity int) int
		Metadata  func(childComplexity int) int
	}

	Identity struct {
		Metadata func(childComplexity int) int
		Password func(childComplexity int) int
		Roles    func(childComplexity int) int
	}

	ListIdentitiesResult struct {
		Identities    func(childComplexity int) int
		NextPageToken func(childComplexity int) int
		TotalSize     func(childComplexity int) int
	}

	ListRolesResult struct {
		NextPageToken func(childComplexity int) int
		Roles         func(childComplexity int) int
		TotalSize     func(childComplexity int) int
	}

	ListRulesResult struct {
		NextPageToken func(childComplexity int) int
		Rules         func(childComplexity int) int
		TotalSize     func(childComplexity int) int
	}

	ListSessionsResult struct {
		NextPageToken func(childComplexity int) int
		Sessions      func(childComplexity int) int
		TotalSize     func(childComplexity int) int
	}

	ListUsersResult struct {
		NextPageToken func(childComplexity int) int
		TotalSize     func(childComplexity int) int
		Users         func(childComplexity int) int
	}

	Metadata struct {
		CreatedAt func(childComplexity int) int
		ID        func(childComplexity int) int
		Name      func(childComplexity int) int
		Namespace func(childComplexity int) int
		Type      func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
	}

	Mutation struct {
		Login  func(childComplexity int, namespace string, username string, password string) int
		Logout func(childComplexity int) int
	}

	Password struct {
		Password func(childComplexity int) int
		Username func(childComplexity int) int
	}

	Props struct {
		Key func(childComplexity int) int
		Val func(childComplexity int) int
	}

	Query struct {
		CurrentSession func(childComplexity int) int
		CurrentUser    func(childComplexity int) int
		ListIdentities func(childComplexity int, query string, orderBy string, pageSize int, page int, nextPageToken string) int
		ListRoles      func(childComplexity int, query string, orderBy string, pageSize int, page int, nextPageToken string) int
		ListRules      func(childComplexity int, query string, orderBy string, pageSize int, page int, nextPageToken string) int
		ListSessions   func(childComplexity int, query string, orderBy string, pageSize int, page int, nextPageToken string) int
		ListUsers      func(childComplexity int, query string, orderBy string, pageSize int, page int, nextPageToken string) int
		Status         func(childComplexity int) int
	}

	Role struct {
		Metadata func(childComplexity int) int
		Rules    func(childComplexity int) int
	}

	Rule struct {
		Instances  func(childComplexity int) int
		Metadata   func(childComplexity int) int
		Name       func(childComplexity int) int
		Namespace  func(childComplexity int) int
		ObjectType func(childComplexity int) int
		Operation  func(childComplexity int) int
	}

	Session struct {
		Access     func(childComplexity int) int
		IdentityID func(childComplexity int) int
		Metadata   func(childComplexity int) int
	}

	User struct {
		Country    func(childComplexity int) int
		Email      func(childComplexity int) int
		FirstName  func(childComplexity int) int
		IdentityID func(childComplexity int) int
		LastName   func(childComplexity int) int
		Metadata   func(childComplexity int) int
		Phone      func(childComplexity int) int
		Roles      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 {
	Login(ctx context.Context, namespace string, username string, password string) (*domain.User, error)
	Logout(ctx context.Context) (*string, error)
}

type QueryResolver

type QueryResolver interface {
	Status(ctx context.Context) (string, error)
	CurrentUser(ctx context.Context) (*domain.User, error)
	CurrentSession(ctx context.Context) (*domain.Session, error)
	ListUsers(ctx context.Context, query string, orderBy string, pageSize int, page int, nextPageToken string) (*api.ListUsersResult, error)
	ListIdentities(ctx context.Context, query string, orderBy string, pageSize int, page int, nextPageToken string) (*api.ListIdentitiesResult, error)
	ListSessions(ctx context.Context, query string, orderBy string, pageSize int, page int, nextPageToken string) (*api.ListSessionsResult, error)
	ListRoles(ctx context.Context, query string, orderBy string, pageSize int, page int, nextPageToken string) (*api.ListRolesResult, error)
	ListRules(ctx context.Context, query string, orderBy string, pageSize int, page int, nextPageToken string) (*api.ListRulesResult, error)
}

type ResolverRoot

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

type UserResolver

type UserResolver interface {
	Roles(ctx context.Context, obj *domain.User) ([]*domain.Role, error)
}

Jump to

Keyboard shortcuts

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