16 lines
366 B
Go
16 lines
366 B
Go
package user_core_client
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type UserCentSync interface {
|
|
Start(ctx context.Context) error
|
|
Stop(ctx context.Context) error
|
|
|
|
// SetCallUserListener 设置用户事件回调函数
|
|
SetCallUserListener(func(context.Context, *UserEvent) error)
|
|
// SetErrorListener 设置错误回调函数
|
|
SetErrorListener(func(context.Context, error) error)
|
|
}
|