graphql

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryResolver

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

QueryResolver implements GQL API methods

func NewQueryResolver

func NewQueryResolver() *QueryResolver

NewQueryResolver returns new API resolver

func (*QueryResolver) Get

func (r *QueryResolver) Get(ctx context.Context, name string, otype models.OptionType, targetID uint64) (*models.OptionPayload, error)

Get Option is the resolver for the option field.

func (*QueryResolver) List

List Options is the resolver for the listOptions field.

func (*QueryResolver) Set

Set Option is the resolver for the setOption field.

Jump to

Keyboard shortcuts

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