graph

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(db *core.DB, processor *events.Processor, logger *zap.Logger, credentials []byte, projectName string, clusterName string, clusterRegion string, reviewAppsEnabled bool) http.Handler

func WithVar

func WithVar(key string, val string) callOptionFunc

Types

type GraphqlClient

type GraphqlClient struct {
	IAPAudience string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(clusterURL string, IAPAudience string) *GraphqlClient

func (*GraphqlClient) Mutation

func (g *GraphqlClient) Mutation(ctx context.Context, gql string, key *int, input interface{}, target interface{}) error

func (*GraphqlClient) Query

func (g *GraphqlClient) Query(ctx context.Context, gql string, target interface{}, options ...callOptionFunc) error

type Resolver

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

func NewResolver

func NewResolver(db *core.DB, logger *zap.Logger, processor *events.Processor, credentials []byte, projectName string, clusterName string, clusterRegion string, reviewAppsEnabled bool) *Resolver

func (*Resolver) Mutation

func (r *Resolver) Mutation() generated.MutationResolver

Mutation returns generated.MutationResolver implementation.

func (*Resolver) Query

func (r *Resolver) Query() generated.QueryResolver

Query returns generated.QueryResolver implementation.

func (*Resolver) TuberApp

func (r *Resolver) TuberApp() generated.TuberAppResolver

TuberApp returns generated.TuberAppResolver implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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