Documentation ¶
Overview ¶
Package fakemonitoring provides a fake implementation of monitoring clients and loggers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Name string // contains filtered or unexported fields }
Client implements a fake monitoring.Client
func (*Client) Failures ¶
func (c *Client) Failures() []*LogFailure
Failures returns logged failures.
func (*Client) NewLogger ¶
func (c *Client) NewLogger(context *monitoring.Context) (monitoring.Logger, error)
NewLogger creates a new fake Logger.
type LogEvent ¶
type LogEvent struct { Context *monitoring.Context KeyID uint32 NumBytes int }
LogEvent stored on each 'Log' operation.
type LogFailure ¶
type LogFailure struct {
Context *monitoring.Context
}
LogFailure stored on each 'LogFailure' operation.
Click to show internal directories.
Click to hide internal directories.