Documentation ¶
Index ¶
- type Data
- type ListByPlayerInput
- type Mock
- type Redis
- func (r *Redis) Create(ctx context.Context, room *Data) (*Data, error)
- func (r *Redis) Get(ctx context.Context, id string) (*Data, error)
- func (r *Redis) ListByPlayer(ctx context.Context, input *ListByPlayerInput) ([]*Data, error)
- func (r *Redis) Update(ctx context.Context, room *Data) (*Data, error)
- type RedisConfig
- type Repository
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { ID string `json:"id"` Status Status `json:"status"` PlayerID string `json:"player_id"` MonsterID string `json:"monster_id"` }
func EntityToData ¶
type ListByPlayerInput ¶
type Mock ¶
func (*Mock) ListByPlayer ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func NewRedis ¶
func NewRedis(cfg *RedisConfig) (*Redis, error)
func (*Redis) ListByPlayer ¶
type RedisConfig ¶
type RedisConfig struct {
Client redis.UniversalClient
}
type Repository ¶
Click to show internal directories.
Click to hide internal directories.