sink

package
v0.0.0-...-acc65bd Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileName = "sink.file"
)
View Source
const (
	HTTPName = "sink.http"
)

Variables

This section is empty.

Functions

func NewFile

func NewFile(ctx mirror.ModuleContext, cfg []byte) (mirror.Module, error)

func NewHTTP

func NewHTTP(ctx mirror.ModuleContext, cfg []byte) (mirror.Module, error)

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func (*File) Output

func (m *File) Output() <-chan mirror.Request

func (*File) SetInput

func (m *File) SetInput(c <-chan mirror.Request)

type FileConfig

type FileConfig struct {
	Path       *expr.StringExpr `json:"path,omitempty"`
	Format     string           `json:"format,omitempty"`
	BufferSize int              `json:"buffer_size,omitempty"`
}

type HTTP

type HTTP struct {
	// contains filtered or unexported fields
}

func (*HTTP) Output

func (m *HTTP) Output() <-chan mirror.Request

func (*HTTP) SetInput

func (m *HTTP) SetInput(c <-chan mirror.Request)

type HTTPConfig

type HTTPConfig struct {
	TargetURL string `json:"target_url,omitempty"`
	Timeout   string `json:"timeout,omitempty"`
	Parallel  int    `json:"parallel"`
}

Jump to

Keyboard shortcuts

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