models

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessPoint

type AccessPoint struct {

	/* sdk接入点 (Optional) */
	SdkAddress string `json:"sdkAddress"`

	/* http接入点 (Optional) */
	HttpAddress string `json:"httpAddress"`
}

type DeadLetter

type DeadLetter struct {

	/* id (Optional) */
	MessageId string `json:"messageId"`

	/* 过期时间 (Optional) */
	ExpireTime string `json:"expireTime"`
}

type DeadLetterNumber

type DeadLetterNumber struct {

	/* topic的编号 (Optional) */
	TopicId string `json:"topicId"`

	/* topic名称 (Optional) */
	TopicName string `json:"topicName"`

	/* consumerGroupId (Optional) */
	ConsumerGroupId string `json:"consumerGroupId"`

	/* 死信队列数 (Optional) */
	DeadLetterNumber int `json:"deadLetterNumber"`
}

type Message

type Message struct {

	/* 消息id (Optional) */
	MessageId string `json:"messageId"`

	/* 内容 (Optional) */
	Body string `json:"body"`

	/* tag以逗号隔开 (Optional) */
	Tags string `json:"tags"`

	/* 用户设置的属性json字符串 (Optional) */
	Properties string `json:"properties"`

	/* 消息的存储时间 (Optional) */
	StoreTime int `json:"storeTime"`
}

type Permission

type Permission struct {

	/* userId (Optional) */
	UserId string `json:"userId"`

	/* permission, [SUB, PUB, PUBSUB] (Optional) */
	Permission string `json:"permission"`
}

type Subscription

type Subscription struct {

	/* consumerGroupId (Optional) */
	ConsumerGroupId string `json:"consumerGroupId"`

	/* endPoint (Optional) */
	EndPoint string `json:"endPoint"`

	/* messageInvisibleTimeInSeconds (Optional) */
	MessageInvisibleTimeInSeconds int `json:"messageInvisibleTimeInSeconds"`

	/* subscriptionType (Optional) */
	SubscriptionType string `json:"subscriptionType"`

	/* tags (Optional) */
	Tags []string `json:"tags"`

	/* 是否开启死信队列 (Optional) */
	DlqEnable bool `json:"dlqEnable"`

	/* 最大重试次数 (Optional) */
	MaxRetryTimes int `json:"maxRetryTimes"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 最后更新时间 (Optional) */
	LastUpdateTime string `json:"lastUpdateTime"`

	/* 在线consumer个数 (Optional) */
	ConsumerNumbers int `json:"consumerNumbers"`
}

type Tag

type Tag struct {

	/* 标签的键 (Optional) */
	Key string `json:"key"`

	/* 标签的值 (Optional) */
	Value string `json:"value"`
}

type Topic

type Topic struct {

	/* topic Id (Optional) */
	TopicId string `json:"topicId"`

	/* topic名称 (Optional) */
	TopicName string `json:"topicName"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间 (Optional) */
	LastUpdateTime string `json:"lastUpdateTime"`

	/* topicStatus (Optional) */
	TopicStatus string `json:"topicStatus"`

	/* 自己创建的订阅数 (Optional) */
	SubscriptionCount int `json:"subscriptionCount"`

	/* 消息生命周期时长小时 (Optional) */
	MessageLifeTimeInHours int `json:"messageLifeTimeInHours"`

	/* 配置信息 (Optional) */
	TopicConfig TopicConfig `json:"topicConfig"`

	/* 是否是自己的topic (Optional) */
	Own bool `json:"own"`

	/* 被授权的权限[PUB,SUB,PUBSUB,READ_ONLY,ADMIN] (Optional) */
	AuthorizedPermission string `json:"authorizedPermission"`

	/* 标签信息 (Optional) */
	Tags []Tag `json:"tags"`
}

type TopicConfig

type TopicConfig struct {

	/* 消息最大长度 (Optional) */
	MaxMessageSizeKB int `json:"maxMessageSizeKB"`

	/* tps (Optional) */
	Threshold int `json:"threshold"`

	/* topicPermission (Optional) */
	TopicPermission string `json:"topicPermission"`

	/* topicType (Optional) */
	TopicType string `json:"topicType"`
}

Jump to

Keyboard shortcuts

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