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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryResolver

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

func NewQueryResolver

func NewQueryResolver(repo agreement.Repository) *QueryResolver

func (*QueryResolver) Accept

func (r *QueryResolver) Accept(ctx context.Context, codename string, date types.DateTime, signature string) (*gqmodels.Agreement, error)

AcceptAgreement is the resolver for the acceptAgreement field.

func (*QueryResolver) Get

func (r *QueryResolver) Get(ctx context.Context, codename string) (*gqmodels.Agreement, error)

Agreement is the resolver for the agreement field.

func (*QueryResolver) List

func (r *QueryResolver) List(ctx context.Context, accepted *bool) ([]*gqmodels.Agreement, error)

ListAgreements is the resolver for the lsitAgreements field.

func (*QueryResolver) NextAwailable

func (r *QueryResolver) NextAwailable(ctx context.Context) (*gqmodels.Agreement, error)

NextAgreement is the resolver for the nextAgreement field.

Jump to

Keyboard shortcuts

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