Documentation
¶
Index ¶
- type Entity
- func (e *Entity) AddChannel(ctx context.Context, guildID, channelID int64, position int) error
- func (e *Entity) GetGuildByChannel(ctx context.Context, channelID int64) (model.GuildChannel, error)
- func (e *Entity) GetGuildChannel(ctx context.Context, guildID, channelID int64) (model.GuildChannel, error)
- func (e *Entity) GetGuildChannels(ctx context.Context, guildID int64) ([]model.GuildChannel, error)
- func (e *Entity) RemoveChannel(ctx context.Context, guildID, channelID string) error
- func (e *Entity) ResetGuildChannelPositionBulk(ctx context.Context, chs []int64, guildId int64) error
- func (e *Entity) SetGuildChannelPosition(ctx context.Context, updates []model.GuildChannelUpdatePosition) error
- type GuildChannels
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) AddChannel ¶
func (*Entity) GetGuildByChannel ¶
func (*Entity) GetGuildChannel ¶
func (*Entity) GetGuildChannels ¶
func (*Entity) RemoveChannel ¶
func (*Entity) ResetGuildChannelPositionBulk ¶
func (*Entity) SetGuildChannelPosition ¶
type GuildChannels ¶
type GuildChannels interface {
AddChannel(ctx context.Context, guildID, channelID int64, position int) error
GetGuildChannel(ctx context.Context, guildID, channelID int64) (model.GuildChannel, error)
GetGuildChannels(ctx context.Context, guildID int64) ([]model.GuildChannel, error)
GetGuildByChannel(ctx context.Context, channelID int64) (model.GuildChannel, error)
RemoveChannel(ctx context.Context, guildID, channelID string) error
SetGuildChannelPosition(ctx context.Context, updates []model.GuildChannelUpdatePosition) error
ResetGuildChannelPositionBulk(ctx context.Context, chs []int64, guildId int64) error
}
func New ¶
func New(c *sqlx.DB) GuildChannels
Click to show internal directories.
Click to hide internal directories.