Documentation ¶
Index ¶
- func HandlerKinesis(ctx context.Context, kinesisEvent events.KinesisEvent) error
- func HandlerStream(ctx context.Context, ev *events.CloudwatchLogsEvent) error
- func NewHTTPClient(cfg *HttpClientConfig) *http.Client
- func NewLogger(logLevel string) *log.Logger
- func ProcessRecord(ctx context.Context, record events.KinesisEventRecord, pc Client) error
- func SetupArguments()
- type Client
- type HttpClientConfig
- type PromtailClient
- type PromtailClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerKinesis ¶
func HandlerKinesis(ctx context.Context, kinesisEvent events.KinesisEvent) error
func HandlerStream ¶
func HandlerStream(ctx context.Context, ev *events.CloudwatchLogsEvent) error
func NewHTTPClient ¶
func NewHTTPClient(cfg *HttpClientConfig) *http.Client
func ProcessRecord ¶
func SetupArguments ¶
func SetupArguments()
Types ¶
type HttpClientConfig ¶
type HttpClientConfig struct {
// contains filtered or unexported fields
}
type PromtailClient ¶
type PromtailClient struct {
// contains filtered or unexported fields
}
Implements Client
func NewPromtailClient ¶
func NewPromtailClient(cfg *PromtailClientConfig, log *log.Logger) *PromtailClient
type PromtailClientConfig ¶
type PromtailClientConfig struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.