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 FromZoneModel added in v0.2.0

func FromZoneModel(obj *models.Zone) *gqlmodels.Zone

func FromZoneModelList added in v0.2.0

func FromZoneModelList(obj []*models.Zone) []*gqlmodels.Zone

Types

type QueryResolver

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

func NewQueryResolver

func NewQueryResolver() *QueryResolver

func (*QueryResolver) Approve

func (r *QueryResolver) Approve(ctx context.Context, id uint64, msg *string) (*qlmodels.ZonePayload, error)

Approve Zone is the resolver for the approveApplication field.

func (*QueryResolver) Create

Create Zone is the resolver for the createApplication field.

func (*QueryResolver) Delete

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

Delete Zone is the resolver for the deleteApplication field.

func (*QueryResolver) Get

Get is the resolver for the zone field.

func (*QueryResolver) List

List Zones is the resolver for the listApplications field.

func (*QueryResolver) ListByIDs

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

func (*QueryResolver) Pause

func (r *QueryResolver) Pause(ctx context.Context, id uint64, msg *string) (*qlmodels.ZonePayload, error)

Pause Zone is the resolver for the pauseApplication field.

func (*QueryResolver) Reject

func (r *QueryResolver) Reject(ctx context.Context, id uint64, msg *string) (*qlmodels.ZonePayload, error)

Reject Zone is the resolver for the rejectApplication field.

func (*QueryResolver) Run

func (r *QueryResolver) Run(ctx context.Context, id uint64, msg *string) (*qlmodels.ZonePayload, error)

Run Zone is the resolver for the runApplication field.

func (*QueryResolver) Update

Update Zone is the resolver for the updateApplication field.

type ZoneConnection added in v0.2.0

type ZoneConnection = connectors.CollectionConnection[*gqlmodels.Zone]

ZoneConnection implements collection accessor interface with pagination.

func NewZoneConnection added in v0.2.0

func NewZoneConnection(
	ctx context.Context,
	zoneAccessor zone.Usecase,
	filter *gqlmodels.ZoneListFilter,
	order *gqlmodels.ZoneListOrder,
	page *models.Page,
) *ZoneConnection

NewZoneConnection based on query object

Jump to

Keyboard shortcuts

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