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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromRTBSourceModel added in v0.2.0

func FromRTBSourceModel(src *models.RTBSource) *gqlmodels.RTBSource

func FromRTBSourceModelList added in v0.2.0

func FromRTBSourceModelList(src []*models.RTBSource) []*gqlmodels.RTBSource

Types

type QueryResolver

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

func NewQueryResolver

func NewQueryResolver(uc rtbsource.Usecase) *QueryResolver

func (*QueryResolver) Approve

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

Approve RTBSource is the resolver for the approveRTBSource field.

func (*QueryResolver) Create

Create RTBSource is the resolver for the createRTBSource field.

func (*QueryResolver) Delete

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

Delete RTBSource is the resolver for the deleteRTBSource field.

func (*QueryResolver) Get

Get RTBSource is the resolver for the RTBSource field.

func (*QueryResolver) List

List RTBSources is the resolver for the listRTBSources field.

func (*QueryResolver) Pause

PauseRTBSource is the resolver for the pauseRTBSource field.

func (*QueryResolver) Reject

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

Reject RTBSource is the resolver for the rejectRTBSource field.

func (*QueryResolver) Run

Run RTBSource is the resolver for the runRTBSource field.

func (*QueryResolver) Update

Update RTBSource is the resolver for the updateRTBSource field.

type RTBSourceConnection added in v0.2.0

type RTBSourceConnection = connectors.CollectionConnection[*gqlmodels.RTBSource]

RTBSourceConnection implements collection accessor interface with pagination.

func NewRTBSourceConnection added in v0.2.0

func NewRTBSourceConnection(
	ctx context.Context,
	rtbSourceAccessor rtbsource.Usecase,
	filter *gqlmodels.RTBSourceListFilter,
	order []*gqlmodels.RTBSourceListOrder,
	page *models.Page,
) *RTBSourceConnection

NewRTBSourceConnection based on query object

Jump to

Keyboard shortcuts

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