Documentation
¶
Index ¶
- type UserMgr
- func (mgr *UserMgr) DelNoteNode(ctx context.Context, nameNote string, noteIndex int64) error
- func (mgr *UserMgr) GetAppUserInfo(ctx context.Context, appToken string, uai *chatbotpb.UserAppInfo) (*chatbotpb.UserInfo, proto.Message, error)
- func (mgr *UserMgr) GetNoteInfo(ctx context.Context, name string) (*chatbotpb.NoteInfo, error)
- func (mgr *UserMgr) GetNoteNode(ctx context.Context, nameNote string, noteIndex int64) (*chatbotpb.NoteNode, error)
- func (mgr *UserMgr) UpdNoteInfo(ctx context.Context, ni *chatbotpb.NoteInfo) error
- func (mgr *UserMgr) UpdNoteNode(ctx context.Context, nn *chatbotpb.NoteNode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserMgr ¶
type UserMgr struct {
// contains filtered or unexported fields
}
UserMgr - user manager
func NewUserMgr ¶
func NewUserMgr(dbpath string, httpAddr string, engine string, mgrUserData chatbotdb.UserDataMgr) (*UserMgr, error)
NewUserMgr - new UserMgr
func (*UserMgr) DelNoteNode ¶ added in v0.5.42
DelNoteNode - delete note node
func (*UserMgr) GetAppUserInfo ¶
func (mgr *UserMgr) GetAppUserInfo(ctx context.Context, appToken string, uai *chatbotpb.UserAppInfo) ( *chatbotpb.UserInfo, proto.Message, error)
GetAppUserInfo - get user infomation
func (*UserMgr) GetNoteInfo ¶ added in v0.5.42
GetNoteInfo - get note infomation
func (*UserMgr) GetNoteNode ¶ added in v0.5.42
func (mgr *UserMgr) GetNoteNode(ctx context.Context, nameNote string, noteIndex int64) ( *chatbotpb.NoteNode, error)
GetNoteNode - get note node
func (*UserMgr) UpdNoteInfo ¶ added in v0.5.42
UpdNoteInfo - update note infomation
Click to show internal directories.
Click to hide internal directories.