utils

package
v0.0.0-...-4702bed Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CacheGroupMemberUserIDList = make(map[string]*GroupMemberUserIDListHash, 0)
View Source
var CacheGroupMtx sync.RWMutex

Functions

func GenID

func GenID() string

func GenIDs

func GenIDs(count int) []string

func GetGroupMemberUserIDList

func GetGroupMemberUserIDList(groupID string, operationID string) ([]string, error)

func GetGroupMemberUserIDListFromRemote

func GetGroupMemberUserIDListFromRemote(groupID string, operationID string) ([]string, error)

func GetGroupMemberUserIDListHashFromRemote

func GetGroupMemberUserIDListHashFromRemote(groupID string) (uint64, error)

func JsonDataList

func JsonDataList(resp interface{}) []map[string]interface{}

func JsonDataOne

func JsonDataOne(pb proto.Message) map[string]interface{}

func ProtoToMap

func ProtoToMap(pb proto.Message, idFix bool) map[string]interface{}

Types

type GroupMemberUserIDListHash

type GroupMemberUserIDListHash struct {
	MemberListHash uint64
	UserIDList     []string
}

Jump to

Keyboard shortcuts

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