loader

package
v0.0.0-...-41b38f0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConversationLoader

type ConversationLoader interface {
	LoadConversation(ctx context.Context, conversationID entity.ID) (
		*entity.Conversation, error)
	LoadConversationIDsFromUser(ctx context.Context,
		input entity.RelayQueryInput) (*entity.IDsConnection, error)
	LoadParticipantsInConversation(ctx context.Context,
		conversationID entity.ID) ([]*entity.User, error)
}

type MessageLoader

type MessageLoader interface {
	LoadMessagesInConversation(
		ctx context.Context,
		input entity.RelayQueryInput,
	) (*entity.ConversationMessagesConnection, error)
}

type UserLoader

type UserLoader interface {
	LoadUser(
		ctx context.Context,
		userID entity.ID,
	) (*entity.User, error)
	LoadFriendIDs(ctx context.Context,
		input entity.RelayQueryInput) (*entity.IDsConnection, error)
}

Jump to

Keyboard shortcuts

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