Documentation
¶
Index ¶
- Variables
- func DoAction(action string, options ...string) ([]byte, error)
- type AddPartitionResp
- type AddTopicIpWhitelistResp
- type CkafkaClient
- func (c *CkafkaClient) AddPartition(options ...string) (*AddPartitionResp, error)
- func (c *CkafkaClient) AddTopicIpWhitelist(options ...string) (*AddTopicIpWhitelistResp, error)
- func (c *CkafkaClient) CreateTopic(options ...string) (*CreateTopicResp, error)
- func (c *CkafkaClient) DeleteTopic(options ...string) (*DeleteTopicResp, error)
- func (c *CkafkaClient) DeleteTopicIpWhitelist(options ...string) (*DeleteTopicIpWhitelistResp, error)
- func (client *CkafkaClient) DoAction(action string, options ...string) ([]byte, error)
- func (c *CkafkaClient) GetInstanceAttributes(options ...string) (*GetInstanceAttributesResp, error)
- func (c *CkafkaClient) GetTopicAttributes(options ...string) (*GetTopicAttributesResp, error)
- func (c *CkafkaClient) ListInstance(options ...string) (*ListInstanceResp, error)
- func (c *CkafkaClient) ListTopic(options ...string) (*ListTopicResp, error)
- func (c *CkafkaClient) SetInstanceAttributes(options ...string) (*SetInstanceAttributesResp, error)
- func (c *CkafkaClient) SetTopicAttributes(options ...string) (*SetTopicAttributesResp, error)
- type CreateTopicResp
- type DeleteTopicIpWhitelistResp
- type DeleteTopicResp
- type GetInstanceAttributesResp
- type GetTopicAttributesResp
- type ListInstanceResp
- type ListTopicResp
- type SetInstanceAttributesResp
- type SetTopicAttributesResp
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = CkafkaClient{Client: core.DefaultClient}
Functions ¶
Types ¶
type AddPartitionResp ¶
type AddPartitionResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data []interface{} `json:"data"` Message string `json:"message"` }
func AddPartition ¶
func AddPartition(options ...string) (*AddPartitionResp, error)
func (*AddPartitionResp) String ¶
func (r *AddPartitionResp) String(args ...interface{}) (string, error)
type AddTopicIpWhitelistResp ¶
type AddTopicIpWhitelistResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data []interface{} `json:"data"` Message string `json:"message"` }
func AddTopicIpWhitelist ¶
func AddTopicIpWhitelist(options ...string) (*AddTopicIpWhitelistResp, error)
func (*AddTopicIpWhitelistResp) String ¶
func (r *AddTopicIpWhitelistResp) String(args ...interface{}) (string, error)
type CkafkaClient ¶
func NewClient ¶
func NewClient() *CkafkaClient
func (*CkafkaClient) AddPartition ¶
func (c *CkafkaClient) AddPartition(options ...string) (*AddPartitionResp, error)
func (*CkafkaClient) AddTopicIpWhitelist ¶
func (c *CkafkaClient) AddTopicIpWhitelist(options ...string) (*AddTopicIpWhitelistResp, error)
func (*CkafkaClient) CreateTopic ¶
func (c *CkafkaClient) CreateTopic(options ...string) (*CreateTopicResp, error)
func (*CkafkaClient) DeleteTopic ¶
func (c *CkafkaClient) DeleteTopic(options ...string) (*DeleteTopicResp, error)
func (*CkafkaClient) DeleteTopicIpWhitelist ¶
func (c *CkafkaClient) DeleteTopicIpWhitelist(options ...string) (*DeleteTopicIpWhitelistResp, error)
func (*CkafkaClient) DoAction ¶
func (client *CkafkaClient) DoAction(action string, options ...string) ([]byte, error)
func (*CkafkaClient) GetInstanceAttributes ¶
func (c *CkafkaClient) GetInstanceAttributes(options ...string) (*GetInstanceAttributesResp, error)
func (*CkafkaClient) GetTopicAttributes ¶
func (c *CkafkaClient) GetTopicAttributes(options ...string) (*GetTopicAttributesResp, error)
func (*CkafkaClient) ListInstance ¶
func (c *CkafkaClient) ListInstance(options ...string) (*ListInstanceResp, error)
func (*CkafkaClient) ListTopic ¶
func (c *CkafkaClient) ListTopic(options ...string) (*ListTopicResp, error)
func (*CkafkaClient) SetInstanceAttributes ¶
func (c *CkafkaClient) SetInstanceAttributes(options ...string) (*SetInstanceAttributesResp, error)
func (*CkafkaClient) SetTopicAttributes ¶
func (c *CkafkaClient) SetTopicAttributes(options ...string) (*SetTopicAttributesResp, error)
type CreateTopicResp ¶
type CreateTopicResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { TopicID string `json:"topicId"` } `json:"data"` Message string `json:"message"` }
func CreateTopic ¶
func CreateTopic(options ...string) (*CreateTopicResp, error)
func (*CreateTopicResp) String ¶
func (r *CreateTopicResp) String(args ...interface{}) (string, error)
type DeleteTopicIpWhitelistResp ¶
type DeleteTopicIpWhitelistResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data []interface{} `json:"data"` Message string `json:"message"` }
func DeleteTopicIpWhitelist ¶
func DeleteTopicIpWhitelist(options ...string) (*DeleteTopicIpWhitelistResp, error)
func (*DeleteTopicIpWhitelistResp) String ¶
func (r *DeleteTopicIpWhitelistResp) String(args ...interface{}) (string, error)
type DeleteTopicResp ¶
type DeleteTopicResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data []interface{} `json:"data"` Message string `json:"message"` }
func DeleteTopic ¶
func DeleteTopic(options ...string) (*DeleteTopicResp, error)
func (*DeleteTopicResp) String ¶
func (r *DeleteTopicResp) String(args ...interface{}) (string, error)
type GetInstanceAttributesResp ¶
type GetInstanceAttributesResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { Bandwidth int64 `json:"bandwidth"` CreateTime int64 `json:"createTime"` DiskSize int64 `json:"diskSize"` ExpireTime int64 `json:"expireTime"` InstanceID string `json:"instanceId"` InstanceName string `json:"instanceName"` MsgRetentionTime int64 `json:"msgRetentionTime"` Status int64 `json:"status"` SubnetID string `json:"subnetId"` Vip string `json:"vip"` VipList []struct { Vip string `json:"vip"` Vport string `json:"vport"` } `json:"vipList"` VpcID string `json:"vpcId"` Vport string `json:"vport"` ZoneID int64 `json:"zoneId"` } `json:"data"` Message string `json:"message"` }
func GetInstanceAttributes ¶
func GetInstanceAttributes(options ...string) (*GetInstanceAttributesResp, error)
func (*GetInstanceAttributesResp) String ¶
func (r *GetInstanceAttributesResp) String(args ...interface{}) (string, error)
type GetTopicAttributesResp ¶
type GetTopicAttributesResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { CreateTime int64 `json:"createTime"` EnableWhiteList int64 `json:"enableWhiteList"` IPWhiteList []interface{} `json:"ipWhiteList"` PartitionNum int64 `json:"partitionNum"` Partitions []struct { IsrNum int64 `json:"isrNum"` LeaderStatus int64 `json:"leaderStatus"` Partition int64 `json:"partition"` ReplicaNum int64 `json:"replicaNum"` } `json:"partitions"` TopicID string `json:"topicId"` } `json:"data"` Message string `json:"message"` }
func GetTopicAttributes ¶
func GetTopicAttributes(options ...string) (*GetTopicAttributesResp, error)
func (*GetTopicAttributesResp) String ¶
func (r *GetTopicAttributesResp) String(args ...interface{}) (string, error)
type ListInstanceResp ¶
type ListInstanceResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { InstanceList []struct { InstanceID string `json:"instanceId"` InstanceName string `json:"instanceName"` Status int64 `json:"status"` } `json:"instanceList"` TotalCount int64 `json:"totalCount"` } `json:"data"` Message string `json:"message"` }
func ListInstance ¶
func ListInstance(options ...string) (*ListInstanceResp, error)
func (*ListInstanceResp) String ¶
func (r *ListInstanceResp) String(args ...interface{}) (string, error)
type ListTopicResp ¶
type ListTopicResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { TopicList []struct { TopicID string `json:"topicId"` TopicName string `json:"topicName"` } `json:"topicList"` TotalCount int64 `json:"totalCount"` } `json:"data"` Message string `json:"message"` }
func ListTopic ¶
func ListTopic(options ...string) (*ListTopicResp, error)
func (*ListTopicResp) String ¶
func (r *ListTopicResp) String(args ...interface{}) (string, error)
type SetInstanceAttributesResp ¶
type SetInstanceAttributesResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Message string `json:"message"` }
func SetInstanceAttributes ¶
func SetInstanceAttributes(options ...string) (*SetInstanceAttributesResp, error)
func (*SetInstanceAttributesResp) String ¶
func (r *SetInstanceAttributesResp) String(args ...interface{}) (string, error)
type SetTopicAttributesResp ¶
type SetTopicAttributesResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data []interface{} `json:"data"` Message string `json:"message"` }
func SetTopicAttributes ¶
func SetTopicAttributes(options ...string) (*SetTopicAttributesResp, error)
func (*SetTopicAttributesResp) String ¶
func (r *SetTopicAttributesResp) String(args ...interface{}) (string, error)
Click to show internal directories.
Click to hide internal directories.