graph

package
v0.0.0-...-ae1a546 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	UserService       *services.UserService
	JwtService        *services.JwtService
	FileUploadService *services.FileUploadService
	FriendService     *services.FriendService
	PublicChatService *services.PublicChatService

	Mutex               *sync.Mutex
	PublicChatObservers map[string]chan *model.PublicMessage // user id => public message
}

func NewResolver

func NewResolver(db *gorm.DB, secret []byte) *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) Subscription

func (r *Resolver) Subscription() generated.SubscriptionResolver

Subscription returns generated.SubscriptionResolver implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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