Documentation ¶
Index ¶
- Constants
- type RedisClient
- func (rc *RedisClient) HasMoveToNextSceneBeenDone(ctx context.Context, next model.Talk) (bool, error)
- func (rc *RedisClient) HasNextTalkNotificationAlreadyBeenSent(ctx context.Context, n model.NotificationOnDkTimetable) (bool, error)
- func (rc *RedisClient) MoveToNextSceneJustWasDone(ctx context.Context, next model.Talk) error
- func (rc *RedisClient) NextTalkNotificationJustWasSent(ctx context.Context, n model.NotificationOnDkTimetable) error
Constants ¶
View Source
const (
RedisExpiration = 10 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
func NewRedisClient ¶
func NewRedisClient(addr string) (*RedisClient, error)
func (*RedisClient) HasMoveToNextSceneBeenDone ¶ added in v0.2.0
func (*RedisClient) HasNextTalkNotificationAlreadyBeenSent ¶
func (rc *RedisClient) HasNextTalkNotificationAlreadyBeenSent(ctx context.Context, n model.NotificationOnDkTimetable) (bool, error)
func (*RedisClient) MoveToNextSceneJustWasDone ¶ added in v0.2.0
func (*RedisClient) NextTalkNotificationJustWasSent ¶ added in v0.2.0
func (rc *RedisClient) NextTalkNotificationJustWasSent(ctx context.Context, n model.NotificationOnDkTimetable) error
Click to show internal directories.
Click to hide internal directories.