Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mutex ¶
type Mutex struct {
// contains filtered or unexported fields
}
func (*Mutex) AcquireLock ¶
type PushRedisRepo ¶
type PushRedisRepo struct {
// contains filtered or unexported fields
}
func NewPushRedisRepo ¶
func NewPushRedisRepo() *PushRedisRepo
type RedisCounter ¶
type RedisCounter struct {
// contains filtered or unexported fields
}
func NewRedisCounter ¶
func NewRedisCounter() *RedisCounter
func (*RedisCounter) GetCounter ¶
func (c *RedisCounter) GetCounter(name string, perci int)
func (*RedisCounter) UpdateCounter ¶
func (c *RedisCounter) UpdateCounter(name string, count int64)
type Semaphor ¶
type Semaphor struct {
// contains filtered or unexported fields
}
func NewSemaphor ¶
type Widget ¶
type Widget struct {
// contains filtered or unexported fields
}
func (*Widget) GetWidgets ¶
func (*Widget) SendWidget ¶
func (w *Widget) SendWidget(ctx context.Context, widget *WidgetModel) (err error)
type WidgetModel ¶
type WidgetModel struct { UserId string `json:"uid"` Priority int `json:"im"` Message string `json:"msg"` }
func FromString ¶
func FromString(v string) *WidgetModel
func (*WidgetModel) MarshalString ¶
func (w *WidgetModel) MarshalString() string
Click to show internal directories.
Click to hide internal directories.