bnj

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao .

func New

func New(c *conf.Config) *Dao

New .

func (*Dao) AddCacheLessTime

func (d *Dao) AddCacheLessTime(c context.Context, val int64) (err error)

AddCacheLessTime Set data to mc

func (*Dao) AddCacheTimeFinish

func (d *Dao) AddCacheTimeFinish(c context.Context, val int64) (err error)

AddCacheTimeFinish Set data to mc

func (*Dao) CacheLessTime

func (d *Dao) CacheLessTime(c context.Context) (res int64, err error)

CacheLessTime get data from mc

func (*Dao) CacheTimeFinish

func (d *Dao) CacheTimeFinish(c context.Context) (res int64, err error)

CacheTimeFinish get data from mc

func (*Dao) PushAll

func (d *Dao) PushAll(c context.Context, msg string) (err error)

PushAll broadcast push all

func (*Dao) SendMessage

func (d *Dao) SendMessage(c context.Context, mids []int64, mc, title, msg string) (err error)

SendMessage send system notify.

func (*Dao) SendWechat

func (d *Dao) SendWechat(c context.Context, title, msg, user string) (err error)

SendWechat send wechat work message.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL