Documentation ¶
Index ¶
- Constants
- type AggregatableStatProvider
- type NoOpStatService
- func (n NoOpStatService) AddProvider(provider StatProvider)
- func (n NoOpStatService) Close(ctx context.Context) (err error)
- func (n NoOpStatService) GetStat() StatSummary
- func (n NoOpStatService) Init(a *app.App) (err error)
- func (n NoOpStatService) Name() (name string)
- func (n NoOpStatService) RemoveProvider(provider StatProvider)
- func (n NoOpStatService) Run(ctx context.Context) (err error)
- type StatProvider
- type StatService
- type StatSummary
- type StatType
- type StatValue
Constants ¶
View Source
const CName = "common.debugstat"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoOpStatService ¶
type NoOpStatService struct { }
func (NoOpStatService) AddProvider ¶
func (n NoOpStatService) AddProvider(provider StatProvider)
func (NoOpStatService) GetStat ¶
func (n NoOpStatService) GetStat() StatSummary
func (NoOpStatService) Name ¶
func (n NoOpStatService) Name() (name string)
func (NoOpStatService) RemoveProvider ¶
func (n NoOpStatService) RemoveProvider(provider StatProvider)
type StatProvider ¶
type StatService ¶
type StatService interface { app.ComponentRunnable AddProvider(provider StatProvider) RemoveProvider(provider StatProvider) GetStat() StatSummary }
func New ¶
func New() StatService
func NewNoOp ¶
func NewNoOp() StatService
type StatSummary ¶
type StatSummary struct {
Stats []StatType `json:"stat_types,omitempty"`
}
Directories ¶
Path | Synopsis |
---|---|
Package mock_debugstat is a generated GoMock package.
|
Package mock_debugstat is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.