Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDummyState ¶
func NewDummyState() *dummyState
Types ¶
type RedisState ¶
type RedisState struct {
// contains filtered or unexported fields
}
func NewRedisState ¶
func NewRedisState( rdb *redis.Client, ctx context.Context, ) RedisState
func (*RedisState) UpdateUserData ¶
func (rs *RedisState) UpdateUserData(userID int, newData UserDataStruct) error
func (*RedisState) UserData ¶
func (rs *RedisState) UserData(userId int) (UserDataStruct, error)
type State ¶
type State interface { UserData(userId int) (UserDataStruct, error) UpdateUserData(userID int, newData UserDataStruct) error }
type UserDataStruct ¶
Click to show internal directories.
Click to hide internal directories.