Documentation
¶
Index ¶
- type Entity
- func (e *Entity) GetGroupDmChannel(ctx context.Context, channelId, userId int64) (model.GroupDMChannel, error)
- func (e *Entity) GetGroupDmParticipants(ctx context.Context, channelId int64) ([]model.GroupDMChannel, error)
- func (e *Entity) GetUserGroupDmChannels(ctx context.Context, userId int64) ([]model.GroupDMChannel, error)
- func (e *Entity) IsGroupDmParticipant(ctx context.Context, channelId int64, userId int64) (bool, error)
- func (e *Entity) JoinGroupDmChannel(ctx context.Context, channelId, userId int64) error
- func (e *Entity) JoinGroupDmChannelMany(ctx context.Context, channelId int64, users []int64) error
- func (e *Entity) LeaveGroupDmChannel(ctx context.Context, channelId, userId int64) error
- type GroupDMChannel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func (*Entity) GetGroupDmChannel ¶
func (*Entity) GetGroupDmParticipants ¶
func (*Entity) GetUserGroupDmChannels ¶ added in v1.5.0
func (*Entity) IsGroupDmParticipant ¶
func (*Entity) JoinGroupDmChannel ¶
func (*Entity) JoinGroupDmChannelMany ¶
type GroupDMChannel ¶
type GroupDMChannel interface {
JoinGroupDmChannelMany(ctx context.Context, channelId int64, users []int64) error
JoinGroupDmChannel(ctx context.Context, channelId, userId int64) error
GetGroupDmChannel(ctx context.Context, channelId, userId int64) (model.GroupDMChannel, error)
LeaveGroupDmChannel(ctx context.Context, channelId, userId int64) error
GetGroupDmParticipants(ctx context.Context, channelId int64) ([]model.GroupDMChannel, error)
IsGroupDmParticipant(ctx context.Context, channelId int64, userId int64) (bool, error)
GetUserGroupDmChannels(ctx context.Context, userId int64) ([]model.GroupDMChannel, error)
}
Click to show internal directories.
Click to hide internal directories.