chatbotusermgr

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

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

func (mgr *UserMgr) DelNoteNode(ctx context.Context, nameNote string, noteIndex int64) error

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

func (mgr *UserMgr) GetNoteInfo(ctx context.Context, name string) (
	*chatbotpb.NoteInfo, error)

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

func (mgr *UserMgr) UpdNoteInfo(ctx context.Context, ni *chatbotpb.NoteInfo) error

UpdNoteInfo - update note infomation

func (*UserMgr) UpdNoteNode added in v0.5.42

func (mgr *UserMgr) UpdNoteNode(ctx context.Context, nn *chatbotpb.NoteNode) error

UpdNoteNode - update note node

Jump to

Keyboard shortcuts

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