Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRequestCounter ¶
type IRequestCounter interface { Get(ctx context.Context) *RequestCount Run() error Close() error }
type RequestCount ¶
type RequestCount struct {
Count uint64 `json:"count"`
}
type RequestCounter ¶
type RequestCounter struct {
// contains filtered or unexported fields
}
func NewRequestCounter ¶
func NewRequestCounter(cfg *RequestCounterConfig) *RequestCounter
func (*RequestCounter) Close ¶
func (prc *RequestCounter) Close() error
func (*RequestCounter) Get ¶
func (prc *RequestCounter) Get(ctx context.Context) *RequestCount
func (*RequestCounter) Run ¶
func (prc *RequestCounter) Run() error
Click to show internal directories.
Click to hide internal directories.