Documentation
¶
Index ¶
- type Entity
- func (e *Entity) AddChannel(ctx context.Context, guildID, channelID int64, channelName string, ...) 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) GetGuildChannelsByChannelIDs(ctx context.Context, channelIDs []int64) ([]model.GuildChannel, error)
- func (e *Entity) GetGuildsChannelsIDsMany(ctx context.Context, guilds []int64) ([]int64, error)
- func (e *Entity) RemoveChannel(ctx context.Context, guildID, channelID int64) error
- func (e *Entity) ResetGuildChannelPositionBulk(ctx context.Context, chs []int64, guildId int64) error
- func (e *Entity) SetGuildChannelPosition(ctx context.Context, updates []model.GuildChannelUpdatePosition) (err 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) GetGuildChannelsByChannelIDs ¶ added in v1.8.0
func (*Entity) GetGuildsChannelsIDsMany ¶ added in v1.5.0
func (*Entity) RemoveChannel ¶
func (*Entity) ResetGuildChannelPositionBulk ¶
func (*Entity) SetGuildChannelPosition ¶
type GuildChannels ¶
type GuildChannels interface {
AddChannel(ctx context.Context, guildID, channelID int64, channelName string, channelType model.ChannelType, parentID *int64, private bool, position int, topic *string, creatorID *int64, closed bool) 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)
GetGuildChannelsByChannelIDs(ctx context.Context, channelIDs []int64) ([]model.GuildChannel, error)
RemoveChannel(ctx context.Context, guildID, channelID int64) error
SetGuildChannelPosition(ctx context.Context, updates []model.GuildChannelUpdatePosition) error
ResetGuildChannelPositionBulk(ctx context.Context, chs []int64, guildId int64) error
GetGuildsChannelsIDsMany(ctx context.Context, guilds []int64) ([]int64, error)
}
func New ¶
func New(c *sqlx.DB) GuildChannels
Click to show internal directories.
Click to hide internal directories.