Documentation ¶ Index ¶ type Dao func New(cfg *config.Config) *Dao func (d *Dao) GetSession(traceId int64) (*model.Session, error) func (d *Dao) GetStatus(userId string) (int, error) func (d *Dao) SaveSession(session *model.Session) error func (d *Dao) SetStatus(userId string, isBusy int) error 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 } func New ¶ func New(cfg *config.Config) *Dao func (*Dao) GetSession ¶ func (d *Dao) GetSession(traceId int64) (*model.Session, error) GetSession get session from traceId func (*Dao) GetStatus ¶ func (d *Dao) GetStatus(userId string) (int, error) 弃用 func (*Dao) SaveSession ¶ func (d *Dao) SaveSession(session *model.Session) error func (*Dao) SetStatus ¶ func (d *Dao) SetStatus(userId string, isBusy int) error 弃用 Source Files ¶ View all Source files dao.go redis.go Click to show internal directories. Click to hide internal directories.