graph

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() generated.Config

func RemoveFromSlice

func RemoveFromSlice(slice []string, element string) []string

Types

type ParsedContext

type ParsedContext struct {
	Uid    string
	Claims map[string]interface{}
	Token  string
}

type Resolver

type Resolver struct {
	StreamObservers   sync.Map
	MessageLog        sync.Map
	ProfanityDetector *goaway.ProfanityDetector
}

func (*Resolver) Channel

func (r *Resolver) Channel() generated.ChannelResolver

Channel returns generated.ChannelResolver implementation.

func (*Resolver) Instance

func (r *Resolver) Instance() generated.InstanceResolver

Instance returns generated.InstanceResolver implementation.

func (*Resolver) Invite

func (r *Resolver) Invite() generated.InviteResolver

Invite returns generated.InviteResolver implementation.

func (*Resolver) Message

func (r *Resolver) Message() generated.MessageResolver

Message returns generated.MessageResolver implementation.

func (*Resolver) Mutation

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

Mutation returns generated.MutationResolver implementation.

func (*Resolver) Notification

func (r *Resolver) Notification() generated.NotificationResolver

Notification returns generated.NotificationResolver 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.

func (*Resolver) User

func (r *Resolver) User() generated.UserResolver

User returns generated.UserResolver implementation.

type StreamObserver

type StreamObserver struct {
	UserId     uuid.UUID
	InstanceId uuid.UUID
	Roles      []string
	Stream     chan *model.Notice
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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