Documentation ¶
Overview ¶
loggregator provides a top-level client for connecting to the loggregator v1 and v2 API's.
All members in the package here are deprecated and will be removed in the next major version of this library. Instead, see the v1 and v2 packages for the preferred way of connecting to the respective loggregator API.
Index ¶
- type Clientdeprecated
- type Configdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client
deprecated
type Client interface { SendDuration(name string, value time.Duration) error SendMebiBytes(name string, value int) error SendMetric(name string, value int) error SendBytesPerSecond(name string, value float64) error SendRequestsPerSecond(name string, value float64) error IncrementCounter(name string) error SendAppLog(appID, message, sourceType, sourceInstance string) error SendAppErrorLog(appID, message, sourceType, sourceInstance string) error SendAppMetrics(metrics *events.ContainerMetric) error }
Client is the shared contract between v1 and v2 clients.
Deprecated: This interface will be removed in the next major version. Instead, use the v1 or v2 clients directly.
func NewV1Client
deprecated
func NewV2Client
deprecated
type Config
deprecated
type Config struct { UseV2API bool `json:"loggregator_use_v2_api"` APIPort int `json:"loggregator_api_port"` CACertPath string `json:"loggregator_ca_path"` CertPath string `json:"loggregator_cert_path"` KeyPath string `json:"loggregator_key_path"` JobDeployment string `json:"loggregator_job_deployment"` JobName string `json:"loggregator_job_name"` JobIndex string `json:"loggregator_job_index"` JobIP string `json:"loggregator_job_ip"` JobOrigin string `json:"loggregator_job_origin"` BatchMaxSize uint BatchFlushInterval time.Duration }
Config is the shared configuration between v1 and v2 clients.
Deprecated: Config will be removed in the next major version. Instead, create a v1 or v2 client directly.
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
internal
|
|
loggregator_v2
Package loggregator_v2 is a generated protocol buffer package.
|
Package loggregator_v2 is a generated protocol buffer package. |
v1 provides a client to connect with the loggregtor v1 API
|
v1 provides a client to connect with the loggregtor v1 API |
Package v2 provides a client to send data to the Loggregator v2 API.
|
Package v2 provides a client to send data to the Loggregator v2 API. |