Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PaginatedTopics ¶
type PaginatedTopics struct { Topics []Topic `json:"topics"` NextPageToken string `json:"nextPageToken"` TotalSize int32 `json:"totalSize"` }
PaginatedTopics holds information about a topics' page and how to access the next page
func Find ¶
func Find(projectUUID, userUUID, name, pageToken string, pageSize int32, store stores.Store) (PaginatedTopics, error)
Find searches and returns a specific topic or all topics of a given project
func (*PaginatedTopics) Empty ¶
func (tl *PaginatedTopics) Empty() bool
Empty returns true if Topics has no items
func (*PaginatedTopics) ExportJSON ¶
func (tl *PaginatedTopics) ExportJSON() (string, error)
ExportJSON exports whole Topics List Structure as a json string
type Topic ¶
type Topic struct { ProjectUUID string `json:"-"` Name string `json:"-"` FullName string `json:"name"` LatestPublish time.Time `json:"-"` PublishRate float64 `json:"-"` Schema string `json:"schema,omitempty"` }
Topic struct to hold information for a given topic
func CreateTopic ¶
func CreateTopic(projectUUID string, name string, schemaUUID string, store stores.Store) (Topic, error)
CreateTopic creates a new topic
func (*Topic) ExportJSON ¶
ExportJSON exports whole Topic Structure as a json string
type TopicMetrics ¶
type TopicMetrics struct { MsgNum int64 `json:"number_of_messages"` TotalBytes int64 `json:"total_bytes"` LatestPublish time.Time `json:"-"` PublishRate float64 `json:"-"` }
func FindMetric ¶
Find searches and returns a specific topic or all topics of a given project
func (*TopicMetrics) ExportJSON ¶
func (tp *TopicMetrics) ExportJSON() (string, error)
ExportJSON exports whole TopicMetrics Structure as a json string
Click to show internal directories.
Click to hide internal directories.