Documentation
¶
Index ¶
- type Channel
- type Entity
- func (e *Entity) AdjustMessageCount(ctx context.Context, id, delta int64) error
- func (e *Entity) CreateChannel(ctx context.Context, id int64, name string, channelType model.ChannelType, ...) error
- func (e *Entity) DeleteChannel(ctx context.Context, id int64) error
- func (e *Entity) GetChannel(ctx context.Context, id int64) (model.Channel, error)
- func (e *Entity) GetChannelMessagePosition(ctx context.Context, id int64) (int64, error)
- func (e *Entity) GetChannelThreads(ctx context.Context, channelId int64) ([]model.Channel, error)
- func (e *Entity) GetChannelVoiceRegion(ctx context.Context, id int64) (*string, error)
- func (e *Entity) GetChannelsBulk(ctx context.Context, ids []int64) ([]model.Channel, error)
- func (e *Entity) RenameChannel(ctx context.Context, id int64, newName string) error
- func (e *Entity) ReserveMessagePositions(ctx context.Context, id, count int64) (int64, error)
- func (e *Entity) SetChannelParent(ctx context.Context, id int64, parent *int64) error
- func (e *Entity) SetChannelParentBulk(ctx context.Context, id []int64, parent *int64) error
- func (e *Entity) SetChannelPermissions(ctx context.Context, id int64, permissions int) error
- func (e *Entity) SetChannelPrivate(ctx context.Context, id int64, private bool) error
- func (e *Entity) SetChannelTopic(ctx context.Context, id int64, topic *string) error
- func (e *Entity) SetChannelVoiceRegion(ctx context.Context, id int64, region *string) error
- func (e *Entity) SetLastMessage(ctx context.Context, id, lastMessage int64) error
- func (e *Entity) UpdateChannel(ctx context.Context, id int64, parent *int64, private *bool, ...) (model.Channel, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel interface {
GetChannel(ctx context.Context, id int64) (model.Channel, error)
GetChannelsBulk(ctx context.Context, ids []int64) ([]model.Channel, error)
GetChannelThreads(ctx context.Context, channelId int64) ([]model.Channel, error)
GetChannelMessagePosition(ctx context.Context, id int64) (int64, error)
CreateChannel(ctx context.Context, id int64, name string, channelType model.ChannelType, parent *int64, permissions *int64, private bool) error
DeleteChannel(ctx context.Context, id int64) error
RenameChannel(ctx context.Context, id int64, newName string) error
SetChannelPermissions(ctx context.Context, id int64, permissions int) error
SetChannelPrivate(ctx context.Context, id int64, private bool) error
SetChannelTopic(ctx context.Context, id int64, topic *string) error
SetChannelParent(ctx context.Context, id int64, parent *int64) error
SetChannelParentBulk(ctx context.Context, id []int64, parent *int64) error
SetLastMessage(ctx context.Context, id, lastMessage int64) error
AdjustMessageCount(ctx context.Context, id, delta int64) error
ReserveMessagePositions(ctx context.Context, id, count int64) (int64, error)
UpdateChannel(ctx context.Context, id int64, parent *int64, private *bool, name, topic *string, closed *bool) (model.Channel, error)
SetChannelVoiceRegion(ctx context.Context, id int64, region *string) error
GetChannelVoiceRegion(ctx context.Context, id int64) (*string, error)
}
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func (*Entity) AdjustMessageCount ¶ added in v1.8.0
func (*Entity) CreateChannel ¶
func (*Entity) GetChannel ¶
func (*Entity) GetChannelMessagePosition ¶ added in v1.8.0
func (*Entity) GetChannelThreads ¶
func (*Entity) GetChannelVoiceRegion ¶ added in v1.5.0
GetChannelVoiceRegion returns preferred SFU region if set
func (*Entity) GetChannelsBulk ¶
func (*Entity) RenameChannel ¶
func (*Entity) ReserveMessagePositions ¶ added in v1.8.0
func (*Entity) SetChannelParent ¶
func (*Entity) SetChannelParentBulk ¶
func (*Entity) SetChannelPermissions ¶
func (*Entity) SetChannelPrivate ¶
func (*Entity) SetChannelTopic ¶
func (*Entity) SetChannelVoiceRegion ¶ added in v1.5.0
SetChannelVoiceRegion sets preferred SFU region for a voice channel (nullable)
func (*Entity) SetLastMessage ¶
Click to show internal directories.
Click to hide internal directories.