Documentation
¶
Index ¶
- Variables
- func HookBuildInfo(_ context.Context, ev *Event)
- func HookMetrics(_ context.Context, ev *Event)
- func HookRUsage(_ context.Context, ev *Event)
- func RegisterFlags()
- type Client
- func (c *Client) AddHook(hook Hook) *Client
- func (c *Client) AddTarget(url string, headers map[string]string, writePeriodSeconds float64) *Target
- func (c *Client) Close()
- func (c *Client) Fatal(ctx context.Context, vals ...any)
- func (c *Client) HandleFlags() error
- func (c *Client) Log(ctx context.Context, vals ...any) string
- func (c *Client) WriteEvent(ctx context.Context, ev *Event)
- type Event
- type Hook
- type Target
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidFlags = errors.New("invalid flags") ErrInvalidHeader = fmt.Errorf("%w: invalid --event-headers (missing =)", ErrInvalidFlags) ErrInvalidRateClass = fmt.Errorf("%w: invalid --event-rate-classes (missing =)", ErrInvalidFlags) )
Functions ¶
func HookBuildInfo ¶
func HookMetrics ¶
func HookRUsage ¶
func RegisterFlags ¶
func RegisterFlags()
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) HandleFlags ¶
Click to show internal directories.
Click to hide internal directories.