Documentation ¶
Index ¶
- type RetrieveRoomMessagesOption
- func RetrieveRoomMessagesOptionBasePoint(basePoint int) RetrieveRoomMessagesOption
- func RetrieveRoomMessagesOptionCategory(category string) RetrieveRoomMessagesOption
- func RetrieveRoomMessagesOptionChildren(children bool) RetrieveRoomMessagesOption
- func RetrieveRoomMessagesOptionFetchNumber(fetchNumber int) RetrieveRoomMessagesOption
- func RetrieveRoomMessagesOptionListId(listId *int) RetrieveRoomMessagesOption
- func RetrieveRoomMessagesOptionRangeType(rangeType string) RetrieveRoomMessagesOption
- func RetrieveRoomMessagesOptionReferRoot(referRoot *int) RetrieveRoomMessagesOption
- func RetrieveRoomMessagesOptionRelateFilter(relateFilter bool) RetrieveRoomMessagesOption
- func RetrieveRoomMessagesOptionRoomId(roomId *int) RetrieveRoomMessagesOption
- func RetrieveRoomMessagesOptionSearch(search *string) RetrieveRoomMessagesOption
- func RetrieveRoomMessagesOptionTargetCharacterId(targetCharacterId *int) RetrieveRoomMessagesOption
- type RoomUsecase
- func (s *RoomUsecase) AddRoomMessageFetchConfig(characterId int, config *model.RoomMessageFetchConfig) (configId int, err error)
- func (s *RoomUsecase) BanCharacterFromRoom(userId int, targetId int, roomId int) error
- func (s *RoomUsecase) CancelBanCharacterFromRoom(userId int, targetId int, roomId int) error
- func (s *RoomUsecase) CancelInviteCharacterToRoom(userId int, targetId int, roomId int) error
- func (s *RoomUsecase) CreateRole(characterId int, roomId int, roleName string, role *model.RoomRolePermission) (roleId int, err error)
- func (s *RoomUsecase) CreateRoom(characterId int, room *model.Room) (roomId int, err error)
- func (s *RoomUsecase) DeleteRole(characterId int, roleId int) error
- func (s *RoomUsecase) DeleteRoom(characterId, roomId int) error
- func (s *RoomUsecase) DeleteRoomMessageFetchConfig(characterId, configId int) error
- func (s *RoomUsecase) GrantRoomRole(characterId int, targetId int, roleId int) error
- func (s *RoomUsecase) InviteCharacterToRoom(userId int, targetId int, roomId int) error
- func (s *RoomUsecase) PostRoomMessage(characterId int, message *model.RoomPostMessage) error
- func (s *RoomUsecase) RenameRoomMessageFetchConfig(characterId, configId int, name string) error
- func (s *RoomUsecase) RetrieveMemberRooms(characterId int) (membereds *[]model.RoomListItem, inviteds *[]model.RoomListItem, err error)
- func (s *RoomUsecase) RetrieveOwnedRooms(characterId int) (rooms *[]model.RoomListItem, err error)
- func (s *RoomUsecase) RetrieveRoomBanStates(characterId, roomId int) (states *[]model.RoomBanState, err error)
- func (s *RoomUsecase) RetrieveRoomCreateData(characterId int) (childrenCreatableRooms *[]model.RoomOverview, err error)
- func (s *RoomUsecase) RetrieveRoomGeneralSettings(characterId, roomId int) (settings *model.Room, err error)
- func (s *RoomUsecase) RetrieveRoomInitialData(characterId, roomId int) (initialData *model.RoomInitialData, err error)
- func (s *RoomUsecase) RetrieveRoomInviteStates(characterId, roomId int) (states *[]model.RoomInviteState, err error)
- func (s *RoomUsecase) RetrieveRoomInviteSuggestions(characterId int, searchText string, roomId int) (suggestions *model.CharacterSuggestions, err error)
- func (s *RoomUsecase) RetrieveRoomMembers(characterId, roomId int) (members *[]model.RomeMemberWithRoles, err error)
- func (s *RoomUsecase) RetrieveRoomMessageEditRequiredData(characterId int) (data *model.RoomMessageEditRequiredData, err error)
- func (s *RoomUsecase) RetrieveRoomMessageFetchConfig(characterId int) (configs *[]model.RoomMessageFetchConfigWithId, err error)
- func (s *RoomUsecase) RetrieveRoomMessages(characterId int, options ...RetrieveRoomMessagesOption) (messages *[]model.RoomMessage, isContinueFollowing, isContinuePrevious *bool, ...)
- func (s *RoomUsecase) RetrieveRoomOwnPermissions(characterId, roomId int) (permissions *model.RoomMemberPermission, banned bool, err error)
- func (s *RoomUsecase) RetrieveRoomRoleSettings(characterId, roomId int) (roles []model.RoomRole, err error)
- func (s *RoomUsecase) RevokeRoomRole(characterId int, targetId int, roleId int) error
- func (s *RoomUsecase) SearchRooms(characterId int, options *model.RoomSearchOptions) (rooms []model.RoomListItem, isContinue bool, err error)
- func (s *RoomUsecase) SubscribeRoomMessage(characterId int, roomId int) error
- func (s *RoomUsecase) SubscribeRoomNewMember(characterId int, roomId int) error
- func (s *RoomUsecase) UnsubscribeRoomMessage(characterId int, roomId int) error
- func (s *RoomUsecase) UnsubscribeRoomNewMember(characterId int, roomId int) error
- func (s *RoomUsecase) UpdateRolePermissions(characterId, roleId int, roleName string, role *model.RoomRolePermission) error
- func (s *RoomUsecase) UpdateRolePriorities(characterId int, roomId int, priorities *[]model.RoomRolePriority) error
- func (s *RoomUsecase) UpdateRoomMessageFetchConfigOrders(characterId int, orders *[]model.RoomMessageFetchConfigOrder) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetrieveRoomMessagesOption ¶
type RetrieveRoomMessagesOption func(*model.RoomMessageRetrieveSettings)
func RetrieveRoomMessagesOptionBasePoint ¶
func RetrieveRoomMessagesOptionBasePoint(basePoint int) RetrieveRoomMessagesOption
func RetrieveRoomMessagesOptionCategory ¶
func RetrieveRoomMessagesOptionCategory(category string) RetrieveRoomMessagesOption
func RetrieveRoomMessagesOptionChildren ¶
func RetrieveRoomMessagesOptionChildren(children bool) RetrieveRoomMessagesOption
func RetrieveRoomMessagesOptionFetchNumber ¶
func RetrieveRoomMessagesOptionFetchNumber(fetchNumber int) RetrieveRoomMessagesOption
func RetrieveRoomMessagesOptionListId ¶
func RetrieveRoomMessagesOptionListId(listId *int) RetrieveRoomMessagesOption
func RetrieveRoomMessagesOptionRangeType ¶
func RetrieveRoomMessagesOptionRangeType(rangeType string) RetrieveRoomMessagesOption
func RetrieveRoomMessagesOptionReferRoot ¶
func RetrieveRoomMessagesOptionReferRoot(referRoot *int) RetrieveRoomMessagesOption
func RetrieveRoomMessagesOptionRelateFilter ¶
func RetrieveRoomMessagesOptionRelateFilter(relateFilter bool) RetrieveRoomMessagesOption
func RetrieveRoomMessagesOptionRoomId ¶
func RetrieveRoomMessagesOptionRoomId(roomId *int) RetrieveRoomMessagesOption
func RetrieveRoomMessagesOptionSearch ¶
func RetrieveRoomMessagesOptionSearch(search *string) RetrieveRoomMessagesOption
func RetrieveRoomMessagesOptionTargetCharacterId ¶
func RetrieveRoomMessagesOptionTargetCharacterId(targetCharacterId *int) RetrieveRoomMessagesOption
type RoomUsecase ¶
type RoomUsecase struct {
// contains filtered or unexported fields
}
func NewRoomUsecase ¶
func NewRoomUsecase(registry registry.Registry) *RoomUsecase
func (*RoomUsecase) AddRoomMessageFetchConfig ¶
func (s *RoomUsecase) AddRoomMessageFetchConfig(characterId int, config *model.RoomMessageFetchConfig) (configId int, err error)
func (*RoomUsecase) BanCharacterFromRoom ¶
func (s *RoomUsecase) BanCharacterFromRoom(userId int, targetId int, roomId int) error
func (*RoomUsecase) CancelBanCharacterFromRoom ¶
func (s *RoomUsecase) CancelBanCharacterFromRoom(userId int, targetId int, roomId int) error
func (*RoomUsecase) CancelInviteCharacterToRoom ¶
func (s *RoomUsecase) CancelInviteCharacterToRoom(userId int, targetId int, roomId int) error
func (*RoomUsecase) CreateRole ¶
func (s *RoomUsecase) CreateRole(characterId int, roomId int, roleName string, role *model.RoomRolePermission) (roleId int, err error)
func (*RoomUsecase) CreateRoom ¶
func (*RoomUsecase) DeleteRole ¶
func (s *RoomUsecase) DeleteRole(characterId int, roleId int) error
func (*RoomUsecase) DeleteRoom ¶
func (s *RoomUsecase) DeleteRoom(characterId, roomId int) error
func (*RoomUsecase) DeleteRoomMessageFetchConfig ¶
func (s *RoomUsecase) DeleteRoomMessageFetchConfig(characterId, configId int) error
func (*RoomUsecase) GrantRoomRole ¶
func (s *RoomUsecase) GrantRoomRole(characterId int, targetId int, roleId int) error
func (*RoomUsecase) InviteCharacterToRoom ¶
func (s *RoomUsecase) InviteCharacterToRoom(userId int, targetId int, roomId int) error
func (*RoomUsecase) PostRoomMessage ¶
func (s *RoomUsecase) PostRoomMessage(characterId int, message *model.RoomPostMessage) error
func (*RoomUsecase) RenameRoomMessageFetchConfig ¶
func (s *RoomUsecase) RenameRoomMessageFetchConfig(characterId, configId int, name string) error
func (*RoomUsecase) RetrieveMemberRooms ¶
func (s *RoomUsecase) RetrieveMemberRooms(characterId int) (membereds *[]model.RoomListItem, inviteds *[]model.RoomListItem, err error)
func (*RoomUsecase) RetrieveOwnedRooms ¶
func (s *RoomUsecase) RetrieveOwnedRooms(characterId int) (rooms *[]model.RoomListItem, err error)
func (*RoomUsecase) RetrieveRoomBanStates ¶
func (s *RoomUsecase) RetrieveRoomBanStates(characterId, roomId int) (states *[]model.RoomBanState, err error)
func (*RoomUsecase) RetrieveRoomCreateData ¶
func (s *RoomUsecase) RetrieveRoomCreateData(characterId int) (childrenCreatableRooms *[]model.RoomOverview, err error)
func (*RoomUsecase) RetrieveRoomGeneralSettings ¶
func (s *RoomUsecase) RetrieveRoomGeneralSettings(characterId, roomId int) (settings *model.Room, err error)
func (*RoomUsecase) RetrieveRoomInitialData ¶
func (s *RoomUsecase) RetrieveRoomInitialData(characterId, roomId int) (initialData *model.RoomInitialData, err error)
func (*RoomUsecase) RetrieveRoomInviteStates ¶
func (s *RoomUsecase) RetrieveRoomInviteStates(characterId, roomId int) (states *[]model.RoomInviteState, err error)
func (*RoomUsecase) RetrieveRoomInviteSuggestions ¶
func (s *RoomUsecase) RetrieveRoomInviteSuggestions(characterId int, searchText string, roomId int) (suggestions *model.CharacterSuggestions, err error)
func (*RoomUsecase) RetrieveRoomMembers ¶
func (s *RoomUsecase) RetrieveRoomMembers(characterId, roomId int) (members *[]model.RomeMemberWithRoles, err error)
func (*RoomUsecase) RetrieveRoomMessageEditRequiredData ¶
func (s *RoomUsecase) RetrieveRoomMessageEditRequiredData(characterId int) (data *model.RoomMessageEditRequiredData, err error)
func (*RoomUsecase) RetrieveRoomMessageFetchConfig ¶
func (s *RoomUsecase) RetrieveRoomMessageFetchConfig(characterId int) (configs *[]model.RoomMessageFetchConfigWithId, err error)
func (*RoomUsecase) RetrieveRoomMessages ¶
func (s *RoomUsecase) RetrieveRoomMessages(characterId int, options ...RetrieveRoomMessagesOption) (messages *[]model.RoomMessage, isContinueFollowing, isContinuePrevious *bool, err error)
func (*RoomUsecase) RetrieveRoomOwnPermissions ¶
func (s *RoomUsecase) RetrieveRoomOwnPermissions(characterId, roomId int) (permissions *model.RoomMemberPermission, banned bool, err error)
func (*RoomUsecase) RetrieveRoomRoleSettings ¶
func (s *RoomUsecase) RetrieveRoomRoleSettings(characterId, roomId int) (roles []model.RoomRole, err error)
func (*RoomUsecase) RevokeRoomRole ¶
func (s *RoomUsecase) RevokeRoomRole(characterId int, targetId int, roleId int) error
func (*RoomUsecase) SearchRooms ¶
func (s *RoomUsecase) SearchRooms(characterId int, options *model.RoomSearchOptions) (rooms []model.RoomListItem, isContinue bool, err error)
func (*RoomUsecase) SubscribeRoomMessage ¶
func (s *RoomUsecase) SubscribeRoomMessage(characterId int, roomId int) error
func (*RoomUsecase) SubscribeRoomNewMember ¶
func (s *RoomUsecase) SubscribeRoomNewMember(characterId int, roomId int) error
func (*RoomUsecase) UnsubscribeRoomMessage ¶
func (s *RoomUsecase) UnsubscribeRoomMessage(characterId int, roomId int) error
func (*RoomUsecase) UnsubscribeRoomNewMember ¶
func (s *RoomUsecase) UnsubscribeRoomNewMember(characterId int, roomId int) error
func (*RoomUsecase) UpdateRolePermissions ¶
func (s *RoomUsecase) UpdateRolePermissions(characterId, roleId int, roleName string, role *model.RoomRolePermission) error
func (*RoomUsecase) UpdateRolePriorities ¶
func (s *RoomUsecase) UpdateRolePriorities(characterId int, roomId int, priorities *[]model.RoomRolePriority) error
func (*RoomUsecase) UpdateRoomMessageFetchConfigOrders ¶
func (s *RoomUsecase) UpdateRoomMessageFetchConfigOrders(characterId int, orders *[]model.RoomMessageFetchConfigOrder) error
Source Files ¶
- add_room_message_fetch_config.go
- ban_character_from_room.go
- cancel_ban_character_from_room.go
- cancel_invite_character_to_room.go
- create_role.go
- create_room.go
- delete_role.go
- delete_room.go
- delete_room_message_fetch_config.go
- grant_room_role.go
- invite_character_to_room.go
- post_room_message.go
- rename_room_message_fetch_config.go
- retrieve_member_rooms.go
- retrieve_owned_rooms.go
- retrieve_room_ban_states.go
- retrieve_room_create_data.go
- retrieve_room_general_settings.go
- retrieve_room_initial_data.go
- retrieve_room_invite_states.go
- retrieve_room_invite_suggestions.go
- retrieve_room_members.go
- retrieve_room_message_edit_required_data.go
- retrieve_room_message_fetch_config.go
- retrieve_room_messages.go
- retrieve_room_permissions.go
- retrieve_room_role_settings.go
- revoke_room_role.go
- room.go
- search_rooms.go
- subscribe_room_message.go
- subscribe_room_new_member.go
- unsubscribe_room_message.go
- unsubscribe_room_new_member.go
- update_role_permissions.go
- update_role_priorities.go
- update_room_message_fetch_config_orders.go
Click to show internal directories.
Click to hide internal directories.