Documentation
¶
Index ¶
- Constants
- func WithApiErrCode(ctx context.Context, cb ApiErrCodeCallback) context.Context
- func WithInfo(ctx context.Context, conf *GlobalConfig) context.Context
- func WithOperationID(ctx context.Context, operationID string) context.Context
- func WithSendMessageCallback(ctx context.Context, callback open_im_sdk_callback.SendMsgCallBack) context.Context
- type ApiErrCodeCallback
- type ContextInfo
- type GlobalConfig
- type GlobalConfigKey
Constants ¶
View Source
const (
Callback = "callback"
)
Variables ¶
This section is empty.
Functions ¶
func WithApiErrCode ¶
func WithApiErrCode(ctx context.Context, cb ApiErrCodeCallback) context.Context
func WithOperationID ¶
func WithSendMessageCallback ¶
func WithSendMessageCallback(ctx context.Context, callback open_im_sdk_callback.SendMsgCallBack) context.Context
Types ¶
type ApiErrCodeCallback ¶
func GetApiErrCodeCallback ¶
func GetApiErrCodeCallback(ctx context.Context) ApiErrCodeCallback
type ContextInfo ¶
type ContextInfo interface {
UserID() string
Token() string
PlatformID() int32
ApiAddr() string
WsAddr() string
DataDir() string
LogLevel() uint32
OperationID() string
IsExternalExtensions() bool
}
func Info ¶
func Info(ctx context.Context) ContextInfo
type GlobalConfig ¶
type GlobalConfig struct {
UserID string
Token string
sdk_struct.IMConfig
}
type GlobalConfigKey ¶
type GlobalConfigKey struct{}
Click to show internal directories.
Click to hide internal directories.