Documentation
¶
Index ¶
- type SillyCounter
- func (s *SillyCounter) Close(_ context.Context) error
- func (s *SillyCounter) EnsureDB(_ context.Context) error
- func (s *SillyCounter) IncGlobal(ctx context.Context) (uint64, error)
- func (s *SillyCounter) IncWord(ctx context.Context, w string) (uint64, error)
- func (s *SillyCounter) TearDown(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SillyCounter ¶
type SillyCounter struct {
// contains filtered or unexported fields
}
func New ¶
func New(db *redis.Client) *SillyCounter
func (*SillyCounter) Close ¶
func (s *SillyCounter) Close(_ context.Context) error
nothing to do here
func (*SillyCounter) EnsureDB ¶
func (s *SillyCounter) EnsureDB(_ context.Context) error
nothing to do here
func (*SillyCounter) IncGlobal ¶
func (s *SillyCounter) IncGlobal(ctx context.Context) (uint64, error)
Click to show internal directories.
Click to hide internal directories.