generated

package
v0.0.0-...-40fc3ee Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 13 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 {
	Address struct {
		City               func(childComplexity int) int
		Country            func(childComplexity int) int
		PostalCode         func(childComplexity int) int
		Province           func(childComplexity int) int
		State              func(childComplexity int) int
		StreetAddressLine1 func(childComplexity int) int
		StreetAddressLine2 func(childComplexity int) int
	}

	Chat struct {
		ID       func(childComplexity int) int
		Messages func(childComplexity int) int
	}

	City struct {
		Code func(childComplexity int) int
		Name func(childComplexity int) int
	}

	Comment struct {
		ID     func(childComplexity int) int
		Text   func(childComplexity int) int
		UserID func(childComplexity int) int
	}

	Contact struct {
		AreaCode    func(childComplexity int) int
		CountryCode func(childComplexity int) int
		LineNumber  func(childComplexity int) int
		Premfix     func(childComplexity int) int
	}

	Country struct {
		Code func(childComplexity int) int
		Name func(childComplexity int) int
	}

	File struct {
		Height func(childComplexity int) int
		Name   func(childComplexity int) int
		Size   func(childComplexity int) int
		Type   func(childComplexity int) int
		Width  func(childComplexity int) int
	}

	Goal struct {
		Aim          func(childComplexity int) int
		Creator      func(childComplexity int) int
		Details      func(childComplexity int) int
		ID           func(childComplexity int) int
		Inspiration  func(childComplexity int) int
		IsAchieved   func(childComplexity int) int
		IsPrivate    func(childComplexity int) int
		Journey      func(childComplexity int) int
		Likes        func(childComplexity int) int
		Participants func(childComplexity int) int
		Reason       func(childComplexity int) int
		SimilarGoals func(childComplexity int) int
		Tags         func(childComplexity int) int
		Type         func(childComplexity int) int
		Watchers     func(childComplexity int) int
	}

	Group struct {
		Description func(childComplexity int) int
		Details     func(childComplexity int) int
		ID          func(childComplexity int) int
		People      func(childComplexity int) int
		Title       func(childComplexity int) int
		Type        func(childComplexity int) int
	}

	Image struct {
		Height func(childComplexity int) int
		Name   func(childComplexity int) int
		Size   func(childComplexity int) int
		Type   func(childComplexity int) int
		Width  func(childComplexity int) int
	}

	Journey struct {
		Details      func(childComplexity int) int
		IsComplete   func(childComplexity int) int
		IsInProgress func(childComplexity int) int
		IsStarted    func(childComplexity int) int
		Progress     func(childComplexity int) int
		Steps        func(childComplexity int) int
		Type         func(childComplexity int) int
	}

	Language struct {
		Code func(childComplexity int) int
		Name func(childComplexity int) int
	}

	Location struct {
		ID        func(childComplexity int) int
		Latitude  func(childComplexity int) int
		Longitude func(childComplexity int) int
	}

	MatchedUser struct {
		EmailAddress func(childComplexity int) int
		Firstname    func(childComplexity int) int
		Gender       func(childComplexity int) int
		Lastname     func(childComplexity int) int
		Name         func(childComplexity int) int
		Status       func(childComplexity int) int
		Type         func(childComplexity int) int
		Username     func(childComplexity int) int
	}

	Mutation struct {
		AddGoal         func(childComplexity int, goal pkg.PostGoalInput) int
		AddGroup        func(childComplexity int, group pkg.PostGroupInput) int
		AddPost         func(childComplexity int, post pkg.PostPostInput) int
		AddSpace        func(childComplexity int, space pkg.PostSpaceInput) int
		AddTask         func(childComplexity int, text string) int
		DeleteUser      func(childComplexity int, id string) int
		LoginUser       func(childComplexity int, user pkg.LoginInput) int
		PostUserMessage func(childComplexity int, text string, senderName string, receiverName string) int
		RegisterUser    func(childComplexity int, user pkg.RegisterInput) int
		UpdateGoal      func(childComplexity int, goal pkg.UpdateGoalInput) int
		UpdateGroup     func(childComplexity int, group pkg.UpdateGroupInput) int
		UpdatePost      func(childComplexity int, post pkg.UpdatePostInput) int
		UpdateSpace     func(childComplexity int, space pkg.UpdateSpaceInput) int
		UpdateTask      func(childComplexity int, task pkg.UpdateTaskInput) int
	}

	Profile struct {
		About           func(childComplexity int) int
		BackgroundImage func(childComplexity int) int
		DateLastUpdated func(childComplexity int) int
		Followers       func(childComplexity int) int
		Following       func(childComplexity int) int
		ID              func(childComplexity int) int
		Level           func(childComplexity int) int
		ProfileImage    func(childComplexity int) int
		Rings           func(childComplexity int) int
		UserID          func(childComplexity int) int
	}

	Query struct {
		GetAllGoals           func(childComplexity int) int
		GetAllGroups          func(childComplexity int) int
		GetAllMatches         func(childComplexity int) int
		GetAllPosts           func(childComplexity int, id int) int
		GetAllSpaces          func(childComplexity int) int
		GetAllTasks           func(childComplexity int) int
		GetAllUsers           func(childComplexity int) int
		GetGoal               func(childComplexity int, id string) int
		GetGroup              func(childComplexity int, id string) int
		GetLocationDistance   func(childComplexity int, lon float64, lat float64) int
		GetPost               func(childComplexity int, id string) int
		GetProfile            func(childComplexity int, id string) int
		GetSpace              func(childComplexity int, id string) int
		GetTask               func(childComplexity int, id string) int
		GetUser               func(childComplexity int, id string) int
		GetUserByEmailAddress func(childComplexity int, email string) int
		GetUserByUserName     func(childComplexity int, username string) int
		UserChat              func(childComplexity int, name string) int
	}

	Share struct {
		Party func(childComplexity int) int
	}

	Space struct {
		Creator     func(childComplexity int) int
		Date        func(childComplexity int) int
		Description func(childComplexity int) int
		Details     func(childComplexity int) int
		Followers   func(childComplexity int) int
		ID          func(childComplexity int) int
		Managers    func(childComplexity int) int
		Tags        func(childComplexity int) int
		Topic       func(childComplexity int) int
		Type        func(childComplexity int) int
	}

	State struct {
		Code func(childComplexity int) int
		Name func(childComplexity int) int
	}

	Subscription struct {
		UserMessageAdded func(childComplexity int, chatName string) int
	}

	Task struct {
		ID   func(childComplexity int) int
		Text func(childComplexity int) int
	}

	User struct {
		BillingAddress    func(childComplexity int) int
		BirthDate         func(childComplexity int) int
		DateJoined        func(childComplexity int) int
		EmailAddress      func(childComplexity int) int
		Firstname         func(childComplexity int) int
		Gender            func(childComplexity int) int
		ID                func(childComplexity int) int
		Languages         func(childComplexity int) int
		Lastname          func(childComplexity int) int
		MailingAddress    func(childComplexity int) int
		Middlename        func(childComplexity int) int
		MobilePhoneNumber func(childComplexity int) int
		Name              func(childComplexity int) int
		Password          func(childComplexity int) int
		Status            func(childComplexity int) int
		Type              func(childComplexity int) int
		Username          func(childComplexity int) int
	}

	UserMessage struct {
		ID         func(childComplexity int) int
		IsReceived func(childComplexity int) int
		IsSeen     func(childComplexity int) int
		IsSent     func(childComplexity int) int
		Receiver   func(childComplexity int) int
		Sender     func(childComplexity int) int
		Text       func(childComplexity int) int
		Timestamp  func(childComplexity int) int
		Type       func(childComplexity int) int
	}

	UserPost struct {
		Agreements   func(childComplexity int) int
		Anonymous    func(childComplexity int) int
		Author       func(childComplexity int) int
		Category     func(childComplexity int) int
		Comments     func(childComplexity int) int
		ContentFile  func(childComplexity int) int
		ContentPhoto func(childComplexity int) int
		ContentText  func(childComplexity int) int
		Date         func(childComplexity int) int
		Followers    func(childComplexity int) int
		ID           func(childComplexity int) int
		Latitude     func(childComplexity int) int
		Likes        func(childComplexity int) int
		Longitude    func(childComplexity int) int
		Shares       func(childComplexity int) int
		Topic        func(childComplexity int) int
		Type         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 {
	RegisterUser(ctx context.Context, user pkg.RegisterInput) (string, error)
	LoginUser(ctx context.Context, user pkg.LoginInput) (string, error)
	DeleteUser(ctx context.Context, id string) (bool, error)
	AddPost(ctx context.Context, post pkg.PostPostInput) (string, error)
	UpdatePost(ctx context.Context, post pkg.UpdatePostInput) (string, error)
	AddSpace(ctx context.Context, space pkg.PostSpaceInput) (string, error)
	UpdateSpace(ctx context.Context, space pkg.UpdateSpaceInput) (string, error)
	AddGoal(ctx context.Context, goal pkg.PostGoalInput) (string, error)
	UpdateGoal(ctx context.Context, goal pkg.UpdateGoalInput) (string, error)
	AddTask(ctx context.Context, text string) (*pkg.Task, error)
	UpdateTask(ctx context.Context, task pkg.UpdateTaskInput) (string, error)
	PostUserMessage(ctx context.Context, text string, senderName string, receiverName string) (*pkg.UserMessage, error)
	AddGroup(ctx context.Context, group pkg.PostGroupInput) (string, error)
	UpdateGroup(ctx context.Context, group pkg.UpdateGroupInput) (string, error)
}

type QueryResolver

type QueryResolver interface {
	GetAllUsers(ctx context.Context) ([]*pkg.User, error)
	GetUser(ctx context.Context, id string) (*pkg.User, error)
	GetUserByUserName(ctx context.Context, username string) (*pkg.User, error)
	GetUserByEmailAddress(ctx context.Context, email string) (*pkg.User, error)
	GetPost(ctx context.Context, id string) (*pkg.UserPost, error)
	GetAllPosts(ctx context.Context, id int) ([]*pkg.UserPost, error)
	GetSpace(ctx context.Context, id string) (*pkg.Space, error)
	GetAllSpaces(ctx context.Context) ([]*pkg.Space, error)
	GetGoal(ctx context.Context, id string) (*pkg.Goal, error)
	GetAllGoals(ctx context.Context) ([]*pkg.Goal, error)
	GetTask(ctx context.Context, id string) (*pkg.Task, error)
	GetAllTasks(ctx context.Context) ([]*pkg.Task, error)
	GetProfile(ctx context.Context, id string) (*pkg.Profile, error)
	GetLocationDistance(ctx context.Context, lon float64, lat float64) (float64, error)
	UserChat(ctx context.Context, name string) (*pkg.Chat, error)
	GetGroup(ctx context.Context, id string) (*pkg.Group, error)
	GetAllGroups(ctx context.Context) ([]*pkg.Group, error)
	GetAllMatches(ctx context.Context) ([]*pkg.MatchedUser, error)
}

type ResolverRoot

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

type SubscriptionResolver

type SubscriptionResolver interface {
	UserMessageAdded(ctx context.Context, chatName string) (<-chan *pkg.UserMessage, error)
}

Jump to

Keyboard shortcuts

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