Documentation
¶
Index ¶
- type Entity
- func (e *Entity) GetUserSettings(ctx context.Context, userId, version int64) (model.UserSettings, error)
- func (e *Entity) SetUserAppearance(ctx context.Context, userId int64, a model.UserSettingsAppearance) error
- func (e *Entity) SetUserSelectedChannel(ctx context.Context, userId, guildId, channelId int64) error
- func (e *Entity) SetUserSelectedGuild(ctx context.Context, userId, guildId int64) error
- func (e *Entity) SetUserSettings(ctx context.Context, userId int64, settings model.UserSettingsData) error
- type UserSettings
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) GetUserSettings ¶
func (*Entity) SetUserAppearance ¶ added in v1.5.0
func (*Entity) SetUserSelectedChannel ¶ added in v1.5.0
func (*Entity) SetUserSelectedGuild ¶ added in v1.5.0
func (*Entity) SetUserSettings ¶
type UserSettings ¶
type UserSettings interface {
GetUserSettings(ctx context.Context, userId, version int64) (model.UserSettings, error)
SetUserSettings(ctx context.Context, userId int64, settings model.UserSettingsData) error
}
func New ¶
func New(c *sqlx.DB) UserSettings
Click to show internal directories.
Click to hide internal directories.