Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CreateSession(request *CreateSessionRequest) (response *CreateSessionResponse, err error)
- func (c *Client) CreateSessionWithContext(ctx context.Context, request *CreateSessionRequest) (response *CreateSessionResponse, err error)
- func (c *Client) DescribeStreamPlayInfoList(request *DescribeStreamPlayInfoListRequest) (response *DescribeStreamPlayInfoListResponse, err error)
- func (c *Client) DescribeStreamPlayInfoListWithContext(ctx context.Context, request *DescribeStreamPlayInfoListRequest) (response *DescribeStreamPlayInfoListResponse, err error)
- func (c *Client) DescribeWorkers(request *DescribeWorkersRequest) (response *DescribeWorkersResponse, err error)
- func (c *Client) DescribeWorkersWithContext(ctx context.Context, request *DescribeWorkersRequest) (response *DescribeWorkersResponse, err error)
- func (c *Client) ForbidLiveStream(request *ForbidLiveStreamRequest) (response *ForbidLiveStreamResponse, err error)
- func (c *Client) ForbidLiveStreamWithContext(ctx context.Context, request *ForbidLiveStreamRequest) (response *ForbidLiveStreamResponse, err error)
- func (c *Client) RegisterIM(request *RegisterIMRequest) (response *RegisterIMResponse, err error)
- func (c *Client) RegisterIMWithContext(ctx context.Context, request *RegisterIMRequest) (response *RegisterIMResponse, err error)
- func (c *Client) StopGame(request *StopGameRequest) (response *StopGameResponse, err error)
- func (c *Client) StopGameWithContext(ctx context.Context, request *StopGameRequest) (response *StopGameResponse, err error)
- type CreateSessionRequest
- type CreateSessionRequestParams
- type CreateSessionResponse
- type CreateSessionResponseParams
- type DayStreamPlayInfo
- type DescribeStreamPlayInfoListRequest
- type DescribeStreamPlayInfoListRequestParams
- type DescribeStreamPlayInfoListResponse
- type DescribeStreamPlayInfoListResponseParams
- type DescribeWorkersRequest
- type DescribeWorkersRequestParams
- type DescribeWorkersResponse
- type DescribeWorkersResponseParams
- type ForbidLiveStreamRequest
- type ForbidLiveStreamRequestParams
- type ForbidLiveStreamResponse
- type ForbidLiveStreamResponseParams
- type RegisterIMRequest
- type RegisterIMRequestParams
- type RegisterIMResponse
- type RegisterIMResponseParams
- type StopGameRequest
- type StopGameRequestParams
- type StopGameResponse
- type StopGameResponseParams
- type WorkerRegionInfo
Constants ¶
const ( // 操作失败 FAILEDOPERATION = "FailedOperation" // 带宽不足 FAILEDOPERATION_LACKBANDWIDTH = "FailedOperation.LackBandwidth" // 内部错误 INTERNALERROR = "InternalError" // 调用内部服务错误。 INTERNALERROR_CALLOTHERSVRERROR = "InternalError.CallOtherSvrError" // 配置不存在。 INTERNALERROR_CONFIGNOTEXIST = "InternalError.ConfigNotExist" // DB执行错误。 INTERNALERROR_DBERROR = "InternalError.DBError" // 获取用户账号错误。 INTERNALERROR_GETBIZIDERROR = "InternalError.GetBizidError" // 获取流信息失败。 INTERNALERROR_GETSTREAMINFOERROR = "InternalError.GetStreamInfoError" // 获取直播源信息错误。 INTERNALERROR_GETUPSTREAMINFOERROR = "InternalError.GetUpstreamInfoError" // 无权限操作。 INTERNALERROR_NOTPERMMITOPERAT = "InternalError.NotPermmitOperat" // 流状态异常。 INTERNALERROR_STREAMSTATUSERROR = "InternalError.StreamStatusError" // 更新数据失败。 INTERNALERROR_UPDATEDATAERROR = "InternalError.UpdateDataError" // 参数错误 INVALIDPARAMETER = "InvalidParameter" // Json解析失败 INVALIDPARAMETER_JSONPARSEERROR = "InvalidParameter.JsonParseError" // 参数取值错误 INVALIDPARAMETERVALUE = "InvalidParameterValue" // 确认插件是否有IM能力 LIMITEXCEEDED_NOIMABILITY = "LimitExceeded.NoIMAbility" // 缺少参数错误 MISSINGPARAMETER = "MissingParameter" // 没有空闲机器 RESOURCENOTFOUND_NOIDLE = "ResourceNotFound.NoIdle" )
const APIVersion = "2019-03-13"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateSession ¶
func (c *Client) CreateSession(request *CreateSessionRequest) (response *CreateSessionResponse, err error)
CreateSession 创建会话
可能返回的错误码:
FAILEDOPERATION_LACKBANDWIDTH = "FailedOperation.LackBandwidth" INTERNALERROR = "InternalError" INVALIDPARAMETER_JSONPARSEERROR = "InvalidParameter.JsonParseError" RESOURCENOTFOUND_NOIDLE = "ResourceNotFound.NoIdle"
func (*Client) CreateSessionWithContext ¶ added in v1.0.324
func (c *Client) CreateSessionWithContext(ctx context.Context, request *CreateSessionRequest) (response *CreateSessionResponse, err error)
CreateSession 创建会话
可能返回的错误码:
FAILEDOPERATION_LACKBANDWIDTH = "FailedOperation.LackBandwidth" INTERNALERROR = "InternalError" INVALIDPARAMETER_JSONPARSEERROR = "InvalidParameter.JsonParseError" RESOURCENOTFOUND_NOIDLE = "ResourceNotFound.NoIdle"
func (*Client) DescribeStreamPlayInfoList ¶
func (c *Client) DescribeStreamPlayInfoList(request *DescribeStreamPlayInfoListRequest) (response *DescribeStreamPlayInfoListResponse, err error)
DescribeStreamPlayInfoList 查询播放数据,支持按流名称查询详细播放数据,也可按播放域名查询详细总数据。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeStreamPlayInfoListWithContext ¶ added in v1.0.324
func (c *Client) DescribeStreamPlayInfoListWithContext(ctx context.Context, request *DescribeStreamPlayInfoListRequest) (response *DescribeStreamPlayInfoListResponse, err error)
DescribeStreamPlayInfoList 查询播放数据,支持按流名称查询详细播放数据,也可按播放域名查询详细总数据。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeWorkers ¶
func (c *Client) DescribeWorkers(request *DescribeWorkersRequest) (response *DescribeWorkersResponse, err error)
DescribeWorkers 查询空闲机器数量
可能返回的错误码:
INVALIDPARAMETER_JSONPARSEERROR = "InvalidParameter.JsonParseError"
func (*Client) DescribeWorkersWithContext ¶ added in v1.0.324
func (c *Client) DescribeWorkersWithContext(ctx context.Context, request *DescribeWorkersRequest) (response *DescribeWorkersResponse, err error)
DescribeWorkers 查询空闲机器数量
可能返回的错误码:
INVALIDPARAMETER_JSONPARSEERROR = "InvalidParameter.JsonParseError"
func (*Client) ForbidLiveStream ¶
func (c *Client) ForbidLiveStream(request *ForbidLiveStreamRequest) (response *ForbidLiveStreamResponse, err error)
ForbidLiveStream 禁止某条流的推送,可以预设某个时刻将流恢复。
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_CALLOTHERSVRERROR = "InternalError.CallOtherSvrError" INTERNALERROR_CONFIGNOTEXIST = "InternalError.ConfigNotExist" INTERNALERROR_GETBIZIDERROR = "InternalError.GetBizidError" INTERNALERROR_GETSTREAMINFOERROR = "InternalError.GetStreamInfoError" INTERNALERROR_GETUPSTREAMINFOERROR = "InternalError.GetUpstreamInfoError" INTERNALERROR_NOTPERMMITOPERAT = "InternalError.NotPermmitOperat" INTERNALERROR_STREAMSTATUSERROR = "InternalError.StreamStatusError" INTERNALERROR_UPDATEDATAERROR = "InternalError.UpdateDataError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) ForbidLiveStreamWithContext ¶ added in v1.0.324
func (c *Client) ForbidLiveStreamWithContext(ctx context.Context, request *ForbidLiveStreamRequest) (response *ForbidLiveStreamResponse, err error)
ForbidLiveStream 禁止某条流的推送,可以预设某个时刻将流恢复。
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_CALLOTHERSVRERROR = "InternalError.CallOtherSvrError" INTERNALERROR_CONFIGNOTEXIST = "InternalError.ConfigNotExist" INTERNALERROR_GETBIZIDERROR = "InternalError.GetBizidError" INTERNALERROR_GETSTREAMINFOERROR = "InternalError.GetStreamInfoError" INTERNALERROR_GETUPSTREAMINFOERROR = "InternalError.GetUpstreamInfoError" INTERNALERROR_NOTPERMMITOPERAT = "InternalError.NotPermmitOperat" INTERNALERROR_STREAMSTATUSERROR = "InternalError.StreamStatusError" INTERNALERROR_UPDATEDATAERROR = "InternalError.UpdateDataError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) RegisterIM ¶
func (c *Client) RegisterIM(request *RegisterIMRequest) (response *RegisterIMResponse, err error)
RegisterIM 注册聊天室
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_JSONPARSEERROR = "InvalidParameter.JsonParseError" LIMITEXCEEDED_NOIMABILITY = "LimitExceeded.NoIMAbility"
func (*Client) RegisterIMWithContext ¶ added in v1.0.324
func (c *Client) RegisterIMWithContext(ctx context.Context, request *RegisterIMRequest) (response *RegisterIMResponse, err error)
RegisterIM 注册聊天室
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_JSONPARSEERROR = "InvalidParameter.JsonParseError" LIMITEXCEEDED_NOIMABILITY = "LimitExceeded.NoIMAbility"
func (*Client) StopGame ¶
func (c *Client) StopGame(request *StopGameRequest) (response *StopGameResponse, err error)
StopGame 强制退出游戏
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_JSONPARSEERROR = "InvalidParameter.JsonParseError"
func (*Client) StopGameWithContext ¶ added in v1.0.324
func (c *Client) StopGameWithContext(ctx context.Context, request *StopGameRequest) (response *StopGameResponse, err error)
StopGame 强制退出游戏
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_JSONPARSEERROR = "InvalidParameter.JsonParseError"
type CreateSessionRequest ¶
type CreateSessionRequest struct { *tchttp.BaseRequest // 客户端session信息,从JSSDK请求中获得 ClientSession *string `json:"ClientSession,omitnil,omitempty" name:"ClientSession"` // 游戏ID GameId *string `json:"GameId,omitnil,omitempty" name:"GameId"` // 游戏用户ID UserId *string `json:"UserId,omitnil,omitempty" name:"UserId"` // 游戏参数 GameParas *string `json:"GameParas,omitnil,omitempty" name:"GameParas"` // 游戏区域 GameRegion *string `json:"GameRegion,omitnil,omitempty" name:"GameRegion"` // 背景图url ImageUrl *string `json:"ImageUrl,omitnil,omitempty" name:"ImageUrl"` // 分辨率 Resolution *string `json:"Resolution,omitnil,omitempty" name:"Resolution"` }
func NewCreateSessionRequest ¶
func NewCreateSessionRequest() (request *CreateSessionRequest)
func (*CreateSessionRequest) FromJsonString ¶
func (r *CreateSessionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateSessionRequest) ToJsonString ¶
func (r *CreateSessionRequest) ToJsonString() string
type CreateSessionRequestParams ¶ added in v1.0.426
type CreateSessionRequestParams struct { // 客户端session信息,从JSSDK请求中获得 ClientSession *string `json:"ClientSession,omitnil,omitempty" name:"ClientSession"` // 游戏ID GameId *string `json:"GameId,omitnil,omitempty" name:"GameId"` // 游戏用户ID UserId *string `json:"UserId,omitnil,omitempty" name:"UserId"` // 游戏参数 GameParas *string `json:"GameParas,omitnil,omitempty" name:"GameParas"` // 游戏区域 GameRegion *string `json:"GameRegion,omitnil,omitempty" name:"GameRegion"` // 背景图url ImageUrl *string `json:"ImageUrl,omitnil,omitempty" name:"ImageUrl"` // 分辨率 Resolution *string `json:"Resolution,omitnil,omitempty" name:"Resolution"` }
Predefined struct for user
type CreateSessionResponse ¶
type CreateSessionResponse struct { *tchttp.BaseResponse Response *CreateSessionResponseParams `json:"Response"` }
func NewCreateSessionResponse ¶
func NewCreateSessionResponse() (response *CreateSessionResponse)
func (*CreateSessionResponse) FromJsonString ¶
func (r *CreateSessionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateSessionResponse) ToJsonString ¶
func (r *CreateSessionResponse) ToJsonString() string
type CreateSessionResponseParams ¶ added in v1.0.426
type CreateSessionResponseParams struct { // 服务端session信息,返回给JSSDK ServerSession *string `json:"ServerSession,omitnil,omitempty" name:"ServerSession"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DayStreamPlayInfo ¶
type DayStreamPlayInfo struct { // 带宽(单位Mbps)。 Bandwidth *float64 `json:"Bandwidth,omitnil,omitempty" name:"Bandwidth"` // 流量 (单位MB)。 Flux *float64 `json:"Flux,omitnil,omitempty" name:"Flux"` // 在线人数。 Online *uint64 `json:"Online,omitnil,omitempty" name:"Online"` // 请求数。 Request *uint64 `json:"Request,omitnil,omitempty" name:"Request"` // 数据时间点,格式:yyyy-mm-dd HH:MM:SS。 Time *string `json:"Time,omitnil,omitempty" name:"Time"` }
type DescribeStreamPlayInfoListRequest ¶
type DescribeStreamPlayInfoListRequest struct { *tchttp.BaseRequest // 结束时间,北京时间,格式:2019-04-28 10:36:00 // 结束时间 和 开始时间 必须在同一天内。 EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` // 播放域名。 PlayDomain *string `json:"PlayDomain,omitnil,omitempty" name:"PlayDomain"` // 开始时间,北京时间,格式:2019-04-28 10:36:00 // 当前时间 和 开始时间 间隔不超过30天。 StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` // 流名称,精确匹配。 // 若不填,则为查询总体播放数据。 StreamName *string `json:"StreamName,omitnil,omitempty" name:"StreamName"` }
func NewDescribeStreamPlayInfoListRequest ¶
func NewDescribeStreamPlayInfoListRequest() (request *DescribeStreamPlayInfoListRequest)
func (*DescribeStreamPlayInfoListRequest) FromJsonString ¶
func (r *DescribeStreamPlayInfoListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamPlayInfoListRequest) ToJsonString ¶
func (r *DescribeStreamPlayInfoListRequest) ToJsonString() string
type DescribeStreamPlayInfoListRequestParams ¶ added in v1.0.426
type DescribeStreamPlayInfoListRequestParams struct { // 结束时间,北京时间,格式:2019-04-28 10:36:00 // 结束时间 和 开始时间 必须在同一天内。 EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` // 播放域名。 PlayDomain *string `json:"PlayDomain,omitnil,omitempty" name:"PlayDomain"` // 开始时间,北京时间,格式:2019-04-28 10:36:00 // 当前时间 和 开始时间 间隔不超过30天。 StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` // 流名称,精确匹配。 // 若不填,则为查询总体播放数据。 StreamName *string `json:"StreamName,omitnil,omitempty" name:"StreamName"` }
Predefined struct for user
type DescribeStreamPlayInfoListResponse ¶
type DescribeStreamPlayInfoListResponse struct { *tchttp.BaseResponse Response *DescribeStreamPlayInfoListResponseParams `json:"Response"` }
func NewDescribeStreamPlayInfoListResponse ¶
func NewDescribeStreamPlayInfoListResponse() (response *DescribeStreamPlayInfoListResponse)
func (*DescribeStreamPlayInfoListResponse) FromJsonString ¶
func (r *DescribeStreamPlayInfoListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamPlayInfoListResponse) ToJsonString ¶
func (r *DescribeStreamPlayInfoListResponse) ToJsonString() string
type DescribeStreamPlayInfoListResponseParams ¶ added in v1.0.426
type DescribeStreamPlayInfoListResponseParams struct { // 统计信息列表。 DataInfoList []*DayStreamPlayInfo `json:"DataInfoList,omitnil,omitempty" name:"DataInfoList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeWorkersRequest ¶
type DescribeWorkersRequest struct {
*tchttp.BaseRequest
}
func NewDescribeWorkersRequest ¶
func NewDescribeWorkersRequest() (request *DescribeWorkersRequest)
func (*DescribeWorkersRequest) FromJsonString ¶
func (r *DescribeWorkersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeWorkersRequest) ToJsonString ¶
func (r *DescribeWorkersRequest) ToJsonString() string
type DescribeWorkersRequestParams ¶ added in v1.0.426
type DescribeWorkersRequestParams struct { }
Predefined struct for user
type DescribeWorkersResponse ¶
type DescribeWorkersResponse struct { *tchttp.BaseResponse Response *DescribeWorkersResponseParams `json:"Response"` }
func NewDescribeWorkersResponse ¶
func NewDescribeWorkersResponse() (response *DescribeWorkersResponse)
func (*DescribeWorkersResponse) FromJsonString ¶
func (r *DescribeWorkersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeWorkersResponse) ToJsonString ¶
func (r *DescribeWorkersResponse) ToJsonString() string
type DescribeWorkersResponseParams ¶ added in v1.0.426
type DescribeWorkersResponseParams struct { // 各个区域的机器情况 RegionDetail []*WorkerRegionInfo `json:"RegionDetail,omitnil,omitempty" name:"RegionDetail"` // 空闲机器总数量 Idle *uint64 `json:"Idle,omitnil,omitempty" name:"Idle"` // 区域个数 RegionNum *uint64 `json:"RegionNum,omitnil,omitempty" name:"RegionNum"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ForbidLiveStreamRequest ¶
type ForbidLiveStreamRequest struct { *tchttp.BaseRequest // 应用名称。 AppName *string `json:"AppName,omitnil,omitempty" name:"AppName"` // 您的推流域名。 DomainName *string `json:"DomainName,omitnil,omitempty" name:"DomainName"` // 流名称。 StreamName *string `json:"StreamName,omitnil,omitempty" name:"StreamName"` // 恢复流的时间。UTC 格式,例如:2018-11-29T19:00:00Z。 // 注意:默认禁播90天,且最长支持禁播90天。 ResumeTime *string `json:"ResumeTime,omitnil,omitempty" name:"ResumeTime"` }
func NewForbidLiveStreamRequest ¶
func NewForbidLiveStreamRequest() (request *ForbidLiveStreamRequest)
func (*ForbidLiveStreamRequest) FromJsonString ¶
func (r *ForbidLiveStreamRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ForbidLiveStreamRequest) ToJsonString ¶
func (r *ForbidLiveStreamRequest) ToJsonString() string
type ForbidLiveStreamRequestParams ¶ added in v1.0.426
type ForbidLiveStreamRequestParams struct { // 应用名称。 AppName *string `json:"AppName,omitnil,omitempty" name:"AppName"` // 您的推流域名。 DomainName *string `json:"DomainName,omitnil,omitempty" name:"DomainName"` // 流名称。 StreamName *string `json:"StreamName,omitnil,omitempty" name:"StreamName"` // 恢复流的时间。UTC 格式,例如:2018-11-29T19:00:00Z。 // 注意:默认禁播90天,且最长支持禁播90天。 ResumeTime *string `json:"ResumeTime,omitnil,omitempty" name:"ResumeTime"` }
Predefined struct for user
type ForbidLiveStreamResponse ¶
type ForbidLiveStreamResponse struct { *tchttp.BaseResponse Response *ForbidLiveStreamResponseParams `json:"Response"` }
func NewForbidLiveStreamResponse ¶
func NewForbidLiveStreamResponse() (response *ForbidLiveStreamResponse)
func (*ForbidLiveStreamResponse) FromJsonString ¶
func (r *ForbidLiveStreamResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ForbidLiveStreamResponse) ToJsonString ¶
func (r *ForbidLiveStreamResponse) ToJsonString() string
type ForbidLiveStreamResponseParams ¶ added in v1.0.426
type ForbidLiveStreamResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type RegisterIMRequest ¶
type RegisterIMRequest struct { *tchttp.BaseRequest // 用户昵称 Nickname *string `json:"Nickname,omitnil,omitempty" name:"Nickname"` // 用户唯一ID,建议采用用户小程序OpenID加盐形式 UserId *string `json:"UserId,omitnil,omitempty" name:"UserId"` // 用户头像URL HeadImgUrl *string `json:"HeadImgUrl,omitnil,omitempty" name:"HeadImgUrl"` // 用户身份,默认值:0,表示无特殊身份 Level *int64 `json:"Level,omitnil,omitempty" name:"Level"` }
func NewRegisterIMRequest ¶
func NewRegisterIMRequest() (request *RegisterIMRequest)
func (*RegisterIMRequest) FromJsonString ¶
func (r *RegisterIMRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RegisterIMRequest) ToJsonString ¶
func (r *RegisterIMRequest) ToJsonString() string
type RegisterIMRequestParams ¶ added in v1.0.426
type RegisterIMRequestParams struct { // 用户昵称 Nickname *string `json:"Nickname,omitnil,omitempty" name:"Nickname"` // 用户唯一ID,建议采用用户小程序OpenID加盐形式 UserId *string `json:"UserId,omitnil,omitempty" name:"UserId"` // 用户头像URL HeadImgUrl *string `json:"HeadImgUrl,omitnil,omitempty" name:"HeadImgUrl"` // 用户身份,默认值:0,表示无特殊身份 Level *int64 `json:"Level,omitnil,omitempty" name:"Level"` }
Predefined struct for user
type RegisterIMResponse ¶
type RegisterIMResponse struct { *tchttp.BaseResponse Response *RegisterIMResponseParams `json:"Response"` }
func NewRegisterIMResponse ¶
func NewRegisterIMResponse() (response *RegisterIMResponse)
func (*RegisterIMResponse) FromJsonString ¶
func (r *RegisterIMResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RegisterIMResponse) ToJsonString ¶
func (r *RegisterIMResponse) ToJsonString() string
type RegisterIMResponseParams ¶ added in v1.0.426
type RegisterIMResponseParams struct { // 用来传递给插件的关键字段 UserKey *string `json:"UserKey,omitnil,omitempty" name:"UserKey"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type StopGameRequest ¶
type StopGameRequest struct { *tchttp.BaseRequest // 游戏用户ID UserId *string `json:"UserId,omitnil,omitempty" name:"UserId"` }
func NewStopGameRequest ¶
func NewStopGameRequest() (request *StopGameRequest)
func (*StopGameRequest) FromJsonString ¶
func (r *StopGameRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopGameRequest) ToJsonString ¶
func (r *StopGameRequest) ToJsonString() string
type StopGameRequestParams ¶ added in v1.0.426
type StopGameRequestParams struct { // 游戏用户ID UserId *string `json:"UserId,omitnil,omitempty" name:"UserId"` }
Predefined struct for user
type StopGameResponse ¶
type StopGameResponse struct { *tchttp.BaseResponse Response *StopGameResponseParams `json:"Response"` }
func NewStopGameResponse ¶
func NewStopGameResponse() (response *StopGameResponse)
func (*StopGameResponse) FromJsonString ¶
func (r *StopGameResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopGameResponse) ToJsonString ¶
func (r *StopGameResponse) ToJsonString() string
type StopGameResponseParams ¶ added in v1.0.426
type StopGameResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user