Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an HTTP client for the dozor sidecar API.
func (*Client) GetLogs ¶
func (c *Client) GetLogs(ctx context.Context, service string, since, until time.Time, grep string, limit int) (*LogsResponse, error)
GetLogs fetches log lines from dozor for the given service and time window. since and until are optional (zero value means omit). grep is optional (empty means server applies its default filter: panic|fatal|error). limit <= 0 means use the server default.
Click to show internal directories.
Click to hide internal directories.