graphql

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 11 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
}

func NewQueryResolver

func NewQueryResolver() *QueryResolver

func (*QueryResolver) Create

Create DeviceModel is the resolver for the createDeviceModel field.

func (*QueryResolver) Delete

Delete DeviceModel is the resolver for the deleteDeviceModel field.

func (*QueryResolver) Get

func (r *QueryResolver) Get(ctx context.Context, id uint64, codename string) (*qmodels.DeviceModelPayload, error)

Get DeviceModel is the resolver for the DeviceModel field.

func (*QueryResolver) List

List DeviceModel is the resolver for the listDeviceModels field.

func (*QueryResolver) ListByIDs

func (r *QueryResolver) ListByIDs(ctx context.Context, ids []uint64) ([]*qmodels.DeviceModel, error)

ListByIDs returns a list of DeviceModels by their IDs.

func (*QueryResolver) Update

Update DeviceModel is the resolver for the updateDeviceModel field.

Jump to

Keyboard shortcuts

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