generated

package
v0.0.0-...-f479699 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	Attendee struct {
		Comment    func(childComplexity int) int
		Commitment func(childComplexity int) int
		Event      func(childComplexity int) int
		ID         func(childComplexity int) int
		User       func(childComplexity int) int
	}

	Comment struct {
		Creator func(childComplexity int) int
		Event   func(childComplexity int) int
		ID      func(childComplexity int) int
		Text    func(childComplexity int) int
	}

	Event struct {
		Adress      func(childComplexity int) int
		Attendees   func(childComplexity int) int
		Comments    func(childComplexity int) int
		Creator     func(childComplexity int) int
		Description func(childComplexity int) int
		End         func(childComplexity int) int
		ID          func(childComplexity int) int
		Name        func(childComplexity int) int
		Start       func(childComplexity int) int
	}

	Invite struct {
		ID      func(childComplexity int) int
		Section func(childComplexity int) int
		User    func(childComplexity int) int
	}

	Member struct {
		ID      func(childComplexity int) int
		Right   func(childComplexity int) int
		Section func(childComplexity int) int
		User    func(childComplexity int) int
	}

	Mutation struct {
		CreateEvent         func(childComplexity int, event model.NewEvent) int
		CreateEventAttendee func(childComplexity int, event string, user string, commitment int, comment *string) int
		CreateEventComment  func(childComplexity int, event string, text string) int
		CreateInvite        func(childComplexity int, invite model.NewInvite) int
		CreateOrganization  func(childComplexity int, organization model.NewOrganization) int
		CreateSection       func(childComplexity int, section model.NewSection) int
		CreateSectionMember func(childComplexity int, section string, user string, right *int) int
		CreateUser          func(childComplexity int, user model.NewUser) int
		DeleteEvent         func(childComplexity int, id string) int
		DeleteEventAttendee func(childComplexity int, event string, user string) int
		DeleteEventComment  func(childComplexity int, id string) int
		DeleteInvite        func(childComplexity int, id string) int
		DeleteOrganization  func(childComplexity int, id string) int
		DeleteSection       func(childComplexity int, id string) int
		DeleteSectionMember func(childComplexity int, section string, user string) int
		DeleteUser          func(childComplexity int, id string) int
		Login               func(childComplexity int, input model.Login) int
		RefreshToken        func(childComplexity int, input model.RefreshTokenInput) int
		UpdateEvent         func(childComplexity int, id string, name *string, description *string, adress *string, start *string, end *string) int
		UpdateEventAttendee func(childComplexity int, event string, user string, commitment int, comment *string) int
		UpdateEventComment  func(childComplexity int, id string, text string) int
		UpdateOrganization  func(childComplexity int, id string, name *string, picture *string) int
		UpdateSection       func(childComplexity int, id string, name string) int
		UpdateSectionMember func(childComplexity int, section string, user string, right int) int
		UpdateUser          func(childComplexity int, id string, password *string, email *string, showname *string) int
	}

	Organization struct {
		ID       func(childComplexity int) int
		Name     func(childComplexity int) int
		Picture  func(childComplexity int) int
		Sections func(childComplexity int) int
	}

	Query struct {
		Attendee     func(childComplexity int, id string) int
		Attendees    func(childComplexity int, event *string, user *string, commitment *model.Commitment) int
		Comment      func(childComplexity int, id string) int
		Comments     func(childComplexity int, event string) int
		Event        func(childComplexity int, id string) int
		Events       func(childComplexity int, organization *string, start *string, end *string) int
		Invite       func(childComplexity int, id string) int
		Invites      func(childComplexity int, section *string, user *string) int
		Member       func(childComplexity int, id string) int
		Members      func(childComplexity int, section *string, user *string, right *int) int
		Organization func(childComplexity int, id string) int
		Section      func(childComplexity int, id string) int
		User         func(childComplexity int, id string) int
	}

	Section struct {
		ID           func(childComplexity int) int
		Member       func(childComplexity int) int
		Name         func(childComplexity int) int
		Organization func(childComplexity int) int
	}

	User struct {
		Email     func(childComplexity int) int
		ID        func(childComplexity int) int
		Password  func(childComplexity int) int
		Showname  func(childComplexity int) int
		Superuser func(childComplexity int) int
		Username  func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	CreateUser(ctx context.Context, user model.NewUser) (*model.User, error)
	UpdateUser(ctx context.Context, id string, password *string, email *string, showname *string) (*model.User, error)
	DeleteUser(ctx context.Context, id string) (*model.User, error)
	CreateOrganization(ctx context.Context, organization model.NewOrganization) (*model.Organization, error)
	UpdateOrganization(ctx context.Context, id string, name *string, picture *string) (*model.Organization, error)
	DeleteOrganization(ctx context.Context, id string) (*model.Organization, error)
	CreateSection(ctx context.Context, section model.NewSection) (*model.Section, error)
	UpdateSection(ctx context.Context, id string, name string) (*model.Section, error)
	DeleteSection(ctx context.Context, id string) (*model.Section, error)
	CreateSectionMember(ctx context.Context, section string, user string, right *int) (*model.Member, error)
	UpdateSectionMember(ctx context.Context, section string, user string, right int) (*model.Member, error)
	DeleteSectionMember(ctx context.Context, section string, user string) (*model.Member, error)
	CreateEvent(ctx context.Context, event model.NewEvent) (*model.Event, error)
	UpdateEvent(ctx context.Context, id string, name *string, description *string, adress *string, start *string, end *string) (*model.Event, error)
	DeleteEvent(ctx context.Context, id string) (*model.Event, error)
	CreateEventAttendee(ctx context.Context, event string, user string, commitment int, comment *string) (*model.Attendee, error)
	UpdateEventAttendee(ctx context.Context, event string, user string, commitment int, comment *string) (*model.Attendee, error)
	DeleteEventAttendee(ctx context.Context, event string, user string) (*model.Attendee, error)
	CreateEventComment(ctx context.Context, event string, text string) (*model.Comment, error)
	UpdateEventComment(ctx context.Context, id string, text string) (*model.Comment, error)
	DeleteEventComment(ctx context.Context, id string) (*model.Comment, error)
	CreateInvite(ctx context.Context, invite model.NewInvite) (*model.Invite, error)
	DeleteInvite(ctx context.Context, id string) (*model.Invite, error)
	Login(ctx context.Context, input model.Login) (string, error)
	RefreshToken(ctx context.Context, input model.RefreshTokenInput) (string, error)
}

type QueryResolver

type QueryResolver interface {
	User(ctx context.Context, id string) (*model.User, error)
	Organization(ctx context.Context, id string) (*model.Organization, error)
	Section(ctx context.Context, id string) (*model.Section, error)
	Member(ctx context.Context, id string) (*model.Member, error)
	Members(ctx context.Context, section *string, user *string, right *int) ([]*model.Member, error)
	Event(ctx context.Context, id string) (*model.Event, error)
	Events(ctx context.Context, organization *string, start *string, end *string) ([]*model.Event, error)
	Comment(ctx context.Context, id string) (*model.Comment, error)
	Comments(ctx context.Context, event string) ([]*model.Comment, error)
	Attendee(ctx context.Context, id string) (*model.Attendee, error)
	Attendees(ctx context.Context, event *string, user *string, commitment *model.Commitment) ([]*model.Attendee, error)
	Invite(ctx context.Context, id string) (*model.Invite, error)
	Invites(ctx context.Context, section *string, user *string) ([]*model.Invite, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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