user-core-client/client_sync.go

16 lines
366 B
Go
Raw Permalink Normal View History

2025-08-19 13:52:01 +08:00
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)
}