Documentation ¶
Index ¶
- type ApplicationCall
- type Prometheus
- func (p *Prometheus) Registry() *prometheus.Registry
- func (p *Prometheus) ReportCallingTwitterAPIToGetAUser(err error)
- func (p *Prometheus) ReportCallingTwitterAPIToPostATweet(err error)
- func (p *Prometheus) ReportNumberOfAccounts(count int)
- func (p *Prometheus) ReportNumberOfLinkedPublicKeys(count int)
- func (p *Prometheus) ReportNumberOfPublicKeyDownloaderRelays(publicKey domain.PublicKey, n int)
- func (p *Prometheus) ReportNumberOfPublicKeyDownloaders(n int)
- func (p *Prometheus) ReportPurplePagesLookupResult(address domain.RelayAddress, err *error)
- func (p *Prometheus) ReportRelayConnectionState(m map[domain.RelayAddress]app.RelayConnectionState)
- func (p *Prometheus) ReportSubscriptionQueueLength(topic string, n int)
- func (p *Prometheus) ReportTweetCreatedCountPerAccount(m map[accounts.AccountID]int)
- func (p *Prometheus) StartApplicationCall(handlerName string) app.ApplicationCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationCall ¶
type ApplicationCall struct {
// contains filtered or unexported fields
}
func NewApplicationCall ¶
func NewApplicationCall(p *Prometheus, handlerName string, logger logging.Logger) *ApplicationCall
func (*ApplicationCall) End ¶
func (a *ApplicationCall) End(err *error)
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
func NewPrometheus ¶
func NewPrometheus(logger logging.Logger) (*Prometheus, error)
func (*Prometheus) Registry ¶
func (p *Prometheus) Registry() *prometheus.Registry
func (*Prometheus) ReportCallingTwitterAPIToGetAUser ¶
func (p *Prometheus) ReportCallingTwitterAPIToGetAUser(err error)
func (*Prometheus) ReportCallingTwitterAPIToPostATweet ¶
func (p *Prometheus) ReportCallingTwitterAPIToPostATweet(err error)
func (*Prometheus) ReportNumberOfAccounts ¶
func (p *Prometheus) ReportNumberOfAccounts(count int)
func (*Prometheus) ReportNumberOfLinkedPublicKeys ¶
func (p *Prometheus) ReportNumberOfLinkedPublicKeys(count int)
func (*Prometheus) ReportNumberOfPublicKeyDownloaderRelays ¶
func (p *Prometheus) ReportNumberOfPublicKeyDownloaderRelays(publicKey domain.PublicKey, n int)
func (*Prometheus) ReportNumberOfPublicKeyDownloaders ¶
func (p *Prometheus) ReportNumberOfPublicKeyDownloaders(n int)
func (*Prometheus) ReportPurplePagesLookupResult ¶
func (p *Prometheus) ReportPurplePagesLookupResult(address domain.RelayAddress, err *error)
func (*Prometheus) ReportRelayConnectionState ¶
func (p *Prometheus) ReportRelayConnectionState(m map[domain.RelayAddress]app.RelayConnectionState)
func (*Prometheus) ReportSubscriptionQueueLength ¶
func (p *Prometheus) ReportSubscriptionQueueLength(topic string, n int)
func (*Prometheus) ReportTweetCreatedCountPerAccount ¶
func (p *Prometheus) ReportTweetCreatedCountPerAccount(m map[accounts.AccountID]int)
func (*Prometheus) StartApplicationCall ¶
func (p *Prometheus) StartApplicationCall(handlerName string) app.ApplicationCall
Click to show internal directories.
Click to hide internal directories.