Documentation
¶
Index ¶
- func FromZoneModel(obj *models.Zone) *gqlmodels.Zone
- func FromZoneModelList(obj []*models.Zone) []*gqlmodels.Zone
- type QueryResolver
- func (r *QueryResolver) Approve(ctx context.Context, id uint64, msg *string) (*qlmodels.ZonePayload, error)
- func (r *QueryResolver) Create(ctx context.Context, input qlmodels.ZoneCreateInput) (*qlmodels.ZonePayload, error)
- func (r *QueryResolver) Delete(ctx context.Context, id uint64, msg *string) (*qlmodels.ZonePayload, error)
- func (r *QueryResolver) Get(ctx context.Context, id uint64) (*qlmodels.ZonePayload, error)
- func (r *QueryResolver) List(ctx context.Context, filter *qlmodels.ZoneListFilter, ...) (*connectors.ZoneConnection, error)
- func (r *QueryResolver) ListByIDs(ctx context.Context, ids []uint64) ([]*qlmodels.Zone, error)
- func (r *QueryResolver) Pause(ctx context.Context, id uint64, msg *string) (*qlmodels.ZonePayload, error)
- func (r *QueryResolver) Reject(ctx context.Context, id uint64, msg *string) (*qlmodels.ZonePayload, error)
- func (r *QueryResolver) Run(ctx context.Context, id uint64, msg *string) (*qlmodels.ZonePayload, error)
- func (r *QueryResolver) Update(ctx context.Context, id uint64, input qlmodels.ZoneUpdateInput) (*qlmodels.ZonePayload, error)
- type ZoneConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (r *QueryResolver) Create(ctx context.Context, input qlmodels.ZoneCreateInput) (*qlmodels.ZonePayload, error)
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 ¶
func (r *QueryResolver) Get(ctx context.Context, id uint64) (*qlmodels.ZonePayload, error)
Get is the resolver for the zone field.
func (*QueryResolver) List ¶
func (r *QueryResolver) List(ctx context.Context, filter *qlmodels.ZoneListFilter, order *qlmodels.ZoneListOrder, page *qlmodels.Page) (*connectors.ZoneConnection, error)
List Zones is the resolver for the listApplications field.
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 ¶
func (r *QueryResolver) Update(ctx context.Context, id uint64, input qlmodels.ZoneUpdateInput) (*qlmodels.ZonePayload, error)
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
Click to show internal directories.
Click to hide internal directories.