promtail

package
v0.0.0-...-b71159d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: Unlicense Imports: 26 Imported by: 0

Documentation

Index

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 NewLogger

func NewLogger(logLevel string) *log.Logger

func ProcessRecord

func ProcessRecord(ctx context.Context, record events.KinesisEventRecord, pc Client) error

func SetupArguments

func SetupArguments()

Types

type Client

type Client interface {
	// contains filtered or unexported methods
}

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL