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: 5 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 struct {
	// contains filtered or unexported fields
}

func NewConversationLoader

func NewConversationLoader(
	messageUsecase usecase.MessageUsecase,
) *ConversationLoader

func (*ConversationLoader) LoadConversation

func (l *ConversationLoader) LoadConversation(
	ctx context.Context,
	conversationID entity.ID,
) (*entity.Conversation, error)

func (*ConversationLoader) LoadConversationIDsFromUser

func (l *ConversationLoader) LoadConversationIDsFromUser(ctx context.Context,
	input entity.RelayQueryInput) (*entity.IDsConnection, error)

func (*ConversationLoader) LoadParticipantsInConversation

func (l *ConversationLoader) LoadParticipantsInConversation(ctx context.Context,
	conversationID entity.ID) ([]*entity.User, error)

type MessageLoader

type MessageLoader struct {
	// contains filtered or unexported fields
}

func NewMessageLoader

func NewMessageLoader(
	messageFetcher usecase.MessageUsecase,
) *MessageLoader

func (*MessageLoader) LoadMessagesInConversation

func (l *MessageLoader) LoadMessagesInConversation(
	ctx context.Context,
	input entity.RelayQueryInput,
) (*entity.ConversationMessagesConnection, error)

type UserLoader

type UserLoader struct {
	// contains filtered or unexported fields
}

func NewUserLoader

func NewUserLoader(
	userFetcher usecase.UserUsecase,
) *UserLoader

func (*UserLoader) LoadFriendIDs

func (l *UserLoader) LoadFriendIDs(ctx context.Context,
	input entity.RelayQueryInput) (*entity.IDsConnection, error)

func (*UserLoader) LoadUser

func (l *UserLoader) LoadUser(
	ctx context.Context,
	userID entity.ID,
) (*entity.User, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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