Versions in this module Expand all Collapse all v0 v0.0.2 Oct 27, 2022 v0.0.1 Oct 27, 2022 Changes in this version + const BatchSize + const BatchWait + const JSONContentType + const MaxBackoff + const MaxRetries + const MinBackoff + const ReservedLabelTenantID + const Timeout + const Version + var UserAgent = fmt.Sprintf("LokiGoClient/%s", Version) + type Client struct + func New(cfg Config) (*Client, error) + func NewWithDefault(url string) (*Client, error) + func NewWithLogger(cfg Config, logger log.Logger) (*Client, error) + func (c *Client) Handle(labels map[string]string, t time.Time, s string) error + func (c *Client) Stop() + type Config struct + BackoffConfig backoff.BackoffConfig + BatchSize int + BatchWait time.Duration + Client config.HTTPClientConfig + ExternalLabels labelutil.LabelSet + TenantID string + Timeout time.Duration + URL urlutil.URLValue + func NewDefaultConfig(url string) (Config, error) + func (c *Config) RegisterFlags(flags *flag.FlagSet) + func (c *Config) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet) + func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error