Versions in this module Expand all Collapse all v0 v0.0.1 Jul 28, 2022 Changes in this version + var KeyPrefixLocalDB = "LODB-chat-" + var KeyPrefixStateDB = "mavl-chat-" + func CheckFieldName(fd string) bool + func CheckLevel(lv string) bool + func GenerateGroupId(groups []*chattypes.ServerGroup) (string, error) + func GetName() string + func Init(name string, cfg *types.Chain33Config, sub []byte) + func InitExecType() + func NewChat() drivers.Driver + func NowMillionSecond() int64 + type Action struct + func NewAction(Chat *Chat, tx *types.Transaction, index int) *Action + func (action *Action) UpdateBlackList(send *chattypes.UpdateBlackList) (*types.Receipt, error) + func (action *Action) UpdateFriend(send *chattypes.UpdateFriends) (*types.Receipt, error) + func (action *Action) UpdateServerGroup(send *chattypes.UpdateServerGroups) (*types.Receipt, error) + func (action *Action) UpdateUser(send *chattypes.UpdateFields) (*types.Receipt, error) + type ByIdGroup []*chattypes.ServerGroup + func (g ByIdGroup) Compare(i int, val interface{}) int + func (g ByIdGroup) Len() int + func (g ByIdGroup) Less(i, j int) bool + func (g ByIdGroup) Swap(i, j int) + type Chat struct + func (c *Chat) ExecDelLocal(tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error) + func (c *Chat) ExecLocal_Black(payload *chattypes.UpdateBlackList, tx *types.Transaction, ...) (*types.LocalDBSet, error) + func (c *Chat) ExecLocal_Update(payload *chattypes.UpdateFriends, tx *types.Transaction, ...) (*types.LocalDBSet, error) + func (c *Chat) ExecLocal_UpdateServerGroup(payload *chattypes.UpdateServerGroups, tx *types.Transaction, ...) (*types.LocalDBSet, error) + func (c *Chat) ExecLocal_UpdateUser(payload *chattypes.UpdateFields, tx *types.Transaction, ...) (*types.LocalDBSet, error) + func (c *Chat) Exec_Black(payload *chattypes.UpdateBlackList, tx *types.Transaction, index int) (*types.Receipt, error) + func (c *Chat) Exec_Update(payload *chattypes.UpdateFriends, tx *types.Transaction, index int) (*types.Receipt, error) + func (c *Chat) Exec_UpdateServerGroup(payload *chattypes.UpdateServerGroups, tx *types.Transaction, index int) (*types.Receipt, error) + func (c *Chat) Exec_UpdateUser(payload *chattypes.UpdateFields, tx *types.Transaction, index int) (*types.Receipt, error) + func (c *Chat) GetDriverName() string + func (r *Chat) Query_GetBlackList(in *chattypes.ReqGetBlackList) (types.Message, error) + func (r *Chat) Query_GetFriends(in *chattypes.ReqGetFriends) (types.Message, error) + func (r *Chat) Query_GetServerGroup(in *chattypes.ReqGetServerGroup) (types.Message, error) + func (r *Chat) Query_GetUser(in *chattypes.ReqGetUser) (types.Message, error)