Documentation ¶
Index ¶
- type ConversationLoader
- func (l *ConversationLoader) LoadConversation(ctx context.Context, conversationID entity.ID) (*entity.Conversation, error)
- func (l *ConversationLoader) LoadConversationIDsFromUser(ctx context.Context, input entity.RelayQueryInput) (*entity.IDsConnection, error)
- func (l *ConversationLoader) LoadParticipantsInConversation(ctx context.Context, conversationID entity.ID) ([]*entity.User, error)
- type MessageLoader
- type UserLoader
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.