Documentation ¶
Index ¶
- func CheckAllLoginNum(ctx context.Context) error
- func CheckConvNumAfterImpFriAndCrGro(ctx context.Context) error
- func CheckGroupNum(ctx context.Context) error
- func CheckLoginByRateNum(ctx context.Context) error
- func CheckLoginUsersFriends(ctx context.Context) error
- func CheckMessageNum(ctx context.Context) error
- func CloseAndGetCheckErrChan() <-chan error
- func InsertToErrChan(ctx context.Context, err error)
- type Counter
- type CounterChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAllLoginNum ¶
CheckAllLoginNum check if all user is login
func CheckConvNumAfterImpFriAndCrGro ¶
CheckConvNumAfterImpFriAndCrGro check conversation num after import friends and create groups.
func CheckGroupNum ¶
func CheckLoginByRateNum ¶
func CheckLoginUsersFriends ¶
CheckLoginUsersFriends check login users friends
func CheckMessageNum ¶
CheckMessageNum check message num.
func CloseAndGetCheckErrChan ¶
func CloseAndGetCheckErrChan() <-chan error
func InsertToErrChan ¶
Types ¶
type Counter ¶
func NewCounter ¶
type CounterChecker ¶
type CounterChecker[T any, K comparable] struct { // CheckName must start with 'check' and be named with a small camel hump, // followed by the name of the indicator that needs to be checked, // and it will be assigned to checkNumName. // e.g. checkGroupNum: checkNumName=GroupNum CheckName string CheckerKeyName string // used for printing logs GoroutineLimit int GetTotalCount func(ctx context.Context, t T) (int, error) // get now total count CalCorrectCount func(key K) int // return correct num LoopSlice []T // circular slicing GetKey func(t T) K // get checkers key from a type // contains filtered or unexported fields }
func (*CounterChecker[T, K]) Check ¶
func (c *CounterChecker[T, K]) Check(ctx context.Context) error
func (*CounterChecker[T, K]) Init ¶
func (c *CounterChecker[T, K]) Init()
Click to show internal directories.
Click to hide internal directories.