apis

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2018 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTopicRequest

type AddTopicRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/*   */
	TopicModel *streambus.AddTopic `json:"topicModel"`
}

func NewAddTopicRequest

func NewAddTopicRequest(
	regionId string,
	topicModel *streambus.AddTopic,
) *AddTopicRequest

* param regionId: Region ID * param topicModel:

func (AddTopicRequest) GetRegionId

func (r AddTopicRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AddTopicRequest) SetRegionId

func (r *AddTopicRequest) SetRegionId(regionId string)

func (*AddTopicRequest) SetTopicModel

func (r *AddTopicRequest) SetTopicModel(topicModel *streambus.AddTopic)

type AddTopicResponse

type AddTopicResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    AddTopicResult     `json:"result"`
}

type AddTopicResult

type AddTopicResult struct {
	Status  bool   `json:"status"`
	Message string `json:"message"`
}

type GetTopicListRequest

type GetTopicListRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/*  (Optional) */
	Keyword *string `json:"keyword"`
}

func NewGetTopicListRequest

func NewGetTopicListRequest(
	regionId string,
) *GetTopicListRequest

* param regionId: Region ID * param keyword: (Optional)

func (GetTopicListRequest) GetRegionId

func (r GetTopicListRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetTopicListRequest) SetKeyword

func (r *GetTopicListRequest) SetKeyword(keyword string)

func (*GetTopicListRequest) SetRegionId

func (r *GetTopicListRequest) SetRegionId(regionId string)

type GetTopicListResponse

type GetTopicListResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    GetTopicListResult `json:"result"`
}

type GetTopicListResult

type GetTopicListResult struct {
	Topic []streambus.TopicListInfo `json:"topic"`
}

type UpdateTopicRequest

type UpdateTopicRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/*   */
	TopicModel *streambus.AddTopic `json:"topicModel"`
}

func NewUpdateTopicRequest

func NewUpdateTopicRequest(
	regionId string,
	topicModel *streambus.AddTopic,
) *UpdateTopicRequest

* param regionId: Region ID * param topicModel:

func (UpdateTopicRequest) GetRegionId

func (r UpdateTopicRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateTopicRequest) SetRegionId

func (r *UpdateTopicRequest) SetRegionId(regionId string)

func (*UpdateTopicRequest) SetTopicModel

func (r *UpdateTopicRequest) SetTopicModel(topicModel *streambus.AddTopic)

type UpdateTopicResponse

type UpdateTopicResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    UpdateTopicResult  `json:"result"`
}

type UpdateTopicResult

type UpdateTopicResult struct {
	Status  bool   `json:"status"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL