Documentation ¶
Index ¶
- type Stats
- func (ps *Stats) APIAuth()
- func (ps *Stats) APIKeys()
- func (ps *Stats) APILinkGen()
- func (ps *Stats) APILinkRequest()
- func (ps *Stats) APIUnlink()
- func (ps *Stats) Close() error
- func (ps *Stats) FSFileRead(id string, size int64)
- func (ps *Stats) FSFileWritten(id string, size int64)
- func (ps *Stats) GetNews()
- func (ps *Stats) GetNewsList()
- func (ps *Stats) GetUser()
- func (ps *Stats) GetUserByID()
- func (ps *Stats) ID()
- func (ps *Stats) JWT()
- func (ps *Stats) Keys()
- func (ps *Stats) LinkGen()
- func (ps *Stats) LinkRequest()
- func (ps *Stats) PostNews()
- func (ps *Stats) SetUserName()
- func (ps *Stats) Shutdown(ctx context.Context) error
- func (ps *Stats) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
Stats contains all of the calls to track metrics.
func (*Stats) APILinkGen ¶
func (ps *Stats) APILinkGen()
APILinkGen increments the number of api-link-gen calls.
func (*Stats) APILinkRequest ¶
func (ps *Stats) APILinkRequest()
APILinkRequest increments the number of api-link-request calls.
func (*Stats) APIUnlink ¶
func (ps *Stats) APIUnlink()
APIUnlink increments the number of api-unlink calls.
func (*Stats) FSFileRead ¶ added in v0.12.2
FSFileRead reports metrics on a read file by a given charm_id.
func (*Stats) FSFileWritten ¶ added in v0.12.2
FSFileWritten reports metrics on a written file by a given charm_id.
func (*Stats) GetNewsList ¶
func (ps *Stats) GetNewsList()
GetNewsList increments the number of get-news-list calls.
func (*Stats) GetUserByID ¶
func (ps *Stats) GetUserByID()
GetUserByID increments the number of user-by-id calls.
func (*Stats) LinkRequest ¶
func (ps *Stats) LinkRequest()
LinkRequest increments the number of link-request calls.
func (*Stats) PostNews ¶
func (ps *Stats) PostNews()
PostNews increments the number of post-news calls.
func (*Stats) SetUserName ¶
func (ps *Stats) SetUserName()
SetUserName increments the number of set-user-name calls.