gcptypes

package
v0.37.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PullConfig

type PullConfig struct {
	ProjectID            string            `river:"project_id,attr"`
	Subscription         string            `river:"subscription,attr"`
	Labels               map[string]string `river:"labels,attr,optional"`
	UseIncomingTimestamp bool              `river:"use_incoming_timestamp,attr,optional"`
	UseFullLine          bool              `river:"use_full_line,attr,optional"`
}

PullConfig configures a GCPLog target with the 'pull' strategy.

type PushConfig

type PushConfig struct {
	Server               *fnet.ServerConfig `river:",squash"`
	PushTimeout          time.Duration      `river:"push_timeout,attr,optional"`
	Labels               map[string]string  `river:"labels,attr,optional"`
	UseIncomingTimestamp bool               `river:"use_incoming_timestamp,attr,optional"`
	UseFullLine          bool               `river:"use_full_line,attr,optional"`
}

PushConfig configures a GCPLog target with the 'push' strategy.

func (*PushConfig) SetToDefault

func (p *PushConfig) SetToDefault()

SetToDefault implements river.Defaulter.

func (*PushConfig) Validate

func (p *PushConfig) Validate() error

Validate implements river.Validator.

Jump to

Keyboard shortcuts

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