Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatroomService ¶
type ChatroomService struct {
ChatroomRepo port.ChatroomPort
}
func NewChatroomService ¶
func NewChatroomService(chatroomRepo port.ChatroomPort) ChatroomService
func (ChatroomService) CreateChatroom ¶
func (c ChatroomService) CreateChatroom(name string) (model.Chatroom, error)
func (ChatroomService) GetChatroomByName ¶
func (c ChatroomService) GetChatroomByName(name string) (model.Chatroom, error)
type MessageService ¶
type MessageService struct {
MessageRepo port.MessagePort
ChatroomRepo port.ChatroomPort
}
func NewMessageService ¶
func NewMessageService(messageRepo port.MessagePort, chatroomRepo port.ChatroomPort) MessageService
func (MessageService) CreateMessage ¶
func (MessageService) ListMessages ¶
func (m MessageService) ListMessages(chatroomName string) ([]model.Message, error)
Click to show internal directories.
Click to hide internal directories.