resolvers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventInput

type EventInput struct {
	Name            string
	Version         string
	Release         string
	PlatformID      string
	Package         string
	Description     string
	Payload         types.JSON
	Success         bool
	EventReceiverID graphql.ID
}

type EventReceiverGroupInput

type EventReceiverGroupInput struct {
	Name             string
	Type             string
	Version          string
	Description      string
	EventReceiverIDs []graphql.ID
}

type EventReceiverInput

type EventReceiverInput struct {
	Name        string
	Type        string
	Version     string
	Description string
	Schema      types.JSON
}

type FindEventInput

type FindEventInput struct {
	ID              *graphql.ID
	Name            graphql.NullString
	Version         graphql.NullString
	Release         graphql.NullString
	PlatformID      graphql.NullString
	Package         graphql.NullString
	Success         graphql.NullBool
	EventReceiverID *graphql.ID
}

type FindEventReceiverGroupInput

type FindEventReceiverGroupInput struct {
	ID      *graphql.ID
	Name    graphql.NullString
	Type    graphql.NullString
	Version graphql.NullString
}

type FindEventReceiverInput

type FindEventReceiverInput struct {
	ID      *graphql.ID
	Name    graphql.NullString
	Type    graphql.NullString
	Version graphql.NullString
}

type MutationResolver

type MutationResolver struct {
	Connection *storage.Database
	// contains filtered or unexported fields
}

The MutationResolver type is used to handle mutations in a GraphQL schema and has a connection to a database. @property Connection - The `Connection` property is a reference to a database connection object. It is used to establish a connection to a database and perform various database operations such as querying and modifying data.

func (*MutationResolver) CreateEvent

func (r *MutationResolver) CreateEvent(args struct{ Event EventInput }) (graphql.ID, error)

func (*MutationResolver) CreateEventReceiver

func (r *MutationResolver) CreateEventReceiver(args struct{ EventReceiver EventReceiverInput }) (graphql.ID, error)

func (*MutationResolver) CreateEventReceiverGroup

func (r *MutationResolver) CreateEventReceiverGroup(args struct{ EventReceiverGroup EventReceiverGroupInput }) (graphql.ID, error)

func (*MutationResolver) SetEventReceiverGroupDisabled

func (r *MutationResolver) SetEventReceiverGroupDisabled(args struct{ ID graphql.ID }) (graphql.ID, error)

func (*MutationResolver) SetEventReceiverGroupEnabled

func (r *MutationResolver) SetEventReceiverGroupEnabled(args struct{ ID graphql.ID }) (graphql.ID, error)

type QueryResolver

type QueryResolver struct {
	Connection *storage.Database
}

func (*QueryResolver) EventReceiverGroups

func (r *QueryResolver) EventReceiverGroups(args struct{ EventReceiverGroup FindEventReceiverGroupInput }) ([]storage.EventReceiverGroup, error)

func (*QueryResolver) EventReceiverGroupsByID

func (r *QueryResolver) EventReceiverGroupsByID(args struct{ ID graphql.ID }) ([]storage.EventReceiverGroup, error)

func (*QueryResolver) EventReceivers

func (r *QueryResolver) EventReceivers(args struct{ EventReceiver FindEventReceiverInput }) ([]storage.EventReceiver, error)

func (*QueryResolver) EventReceiversByID

func (r *QueryResolver) EventReceiversByID(args struct{ ID graphql.ID }) ([]storage.EventReceiver, error)

func (*QueryResolver) Events

func (r *QueryResolver) Events(args struct{ Event FindEventInput }) ([]storage.Event, error)

func (*QueryResolver) EventsByID

func (r *QueryResolver) EventsByID(args struct{ ID graphql.ID }) ([]storage.Event, error)

type Resolver

type Resolver struct {
	Connection *storage.Database
	// contains filtered or unexported fields
}

func New

func New(connection *storage.Database, msgProducer message.TopicProducer) *Resolver

func (*Resolver) Mutation

func (r *Resolver) Mutation() *MutationResolver

func (*Resolver) Query

func (r *Resolver) Query() *QueryResolver

Jump to

Keyboard shortcuts

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