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

func FromAdFormatModel(format *models.Format) *gqlmodels.AdFormat

func FromAdFormatModelList added in v0.2.0

func FromAdFormatModelList(format []*models.Format) []*gqlmodels.AdFormat

Types

type AdFormatConnection added in v0.2.0

type AdFormatConnection = connectors.CollectionConnection[*gqlmodels.AdFormat]

AdFormatConnection implements collection accessor interface with pagination.

func NewAdFormatConnection added in v0.2.0

func NewAdFormatConnection(
	ctx context.Context,
	adFormatAccessor adformat.Usecase,
	filter *gqlmodels.AdFormatListFilter,
	order *gqlmodels.AdFormatListOrder,
	page *models.Page,
) *AdFormatConnection

NewAdFormatConnection based on query object

type QueryResolver

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

func NewQueryResolver

func NewQueryResolver() *QueryResolver

func (*QueryResolver) Create

Create RTBAccessPoint is the resolver for the createRTBAccessPoint field.

func (*QueryResolver) Delete

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

Delete RTBAccessPoint is the resolver for the deleteRTBAccessPoint field.

func (*QueryResolver) Get

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

Get RTBAccessPoint is the resolver for the RTBAccessPoint field.

func (*QueryResolver) List

List RTBAccessPoints is the resolver for the listRTBAccessPoints field.

func (*QueryResolver) ListByCodes

func (r *QueryResolver) ListByCodes(ctx context.Context, codes []string) ([]*qmodels.AdFormat, error)

ListByCodes returns a list of ad formats by their codes.

func (*QueryResolver) Update

Update RTBAccessPoint is the resolver for the updateRTBAccessPoint field.

Jump to

Keyboard shortcuts

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