stats

package
v0.0.0-...-73638bf Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize()

Initialize prepare collector and forwarder object

func SubscriptionDetail

func SubscriptionDetail(id string) ([]byte, error)

SubscriptionDetail returns detail of the subscription stats

func SubscriptionSummary

func SubscriptionSummary() ([]byte, error)

SubscriptionSummary returns summary of the subscription stats

func Summary

func Summary() ([]byte, error)

Summary returns summary of the all stats

func TopicDetail

func TopicDetail(id string) ([]byte, error)

TopicDetail returns detail of the topic stats

func TopicSummary

func TopicSummary() ([]byte, error)

TopicSummary returns summary of the topic stats

Types

type SubscriptionAdapter

type SubscriptionAdapter struct {
	// contains filtered or unexported fields
}

SubscriptionAdapter is adapter of operation metrics for Subscription

func GetSubscriptionAdapter

func GetSubscriptionAdapter() *SubscriptionAdapter

GetSubscriptionAdapter return prepared SubscriptionAdapter

func (*SubscriptionAdapter) AddMessage

func (t *SubscriptionAdapter) AddMessage(subID string, num int)

AddMessage send metrics the added message

func (*SubscriptionAdapter) AddSubscription

func (t *SubscriptionAdapter) AddSubscription(subID string, num int)

AddSubscription send metrics the topic

func (*SubscriptionAdapter) CurrentMessages

func (t *SubscriptionAdapter) CurrentMessages(subID string, msgs []string)

CurrentMessages send metrics the added message

type TopicAdapter

type TopicAdapter struct {
	// contains filtered or unexported fields
}

TopicAdapter is adapter of operation metrics for Topic

func GetTopicAdapter

func GetTopicAdapter() *TopicAdapter

GetTopicAdapter return prepared TopicAdapter

func (*TopicAdapter) AddMessage

func (t *TopicAdapter) AddMessage(topicID string, num int)

AddMessage send metrics the added message

func (*TopicAdapter) AddTopic

func (t *TopicAdapter) AddTopic(topicID string, num int)

AddTopic send metrics the topic

Jump to

Keyboard shortcuts

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