graphql

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromOSModel added in v0.2.0

func FromOSModel(os *models.OS) *gqlmodels.Os

func FromOSModelList added in v0.2.0

func FromOSModelList(os []*models.OS) []*gqlmodels.Os

Types

type OSConnection added in v0.2.0

OSConnection implements collection accessor interface with pagination.

func NewOSConnection added in v0.2.0

func NewOSConnection(
	ctx context.Context,
	osAccessor osrepo.Usecase,
	filter *gqlmodels.OSListFilter,
	order []*gqlmodels.OSListOrder,
	page *models.Page,
) *OSConnection

NewOSConnection based on query object

type QueryResolver

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

func NewQueryResolver

func NewQueryResolver() *QueryResolver

func (*QueryResolver) Create

Create OS is the resolver for the createOS field.

func (*QueryResolver) Delete

func (r *QueryResolver) Delete(ctx context.Context, id uint64, msg *string) (*qmodels.OSPayload, error)

Delete OS is the resolver for the deleteOS field.

func (*QueryResolver) Get

Get OS is the resolver for the OS field.

func (*QueryResolver) List

List OS is the resolver for the listOS field.

func (*QueryResolver) ListByIDs

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

ListByIDs returns a list of OS by their IDs.

func (*QueryResolver) Update

Update OS is the resolver for the updateOS field.

func (*QueryResolver) Versions

func (r *QueryResolver) Versions(ctx context.Context, obj *qmodels.Os) ([]*qmodels.Os, error)

Versions is the resolver for the versions field.

Jump to

Keyboard shortcuts

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