Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultURI = "stdout://"
)
DefaultURI is the default file, outputs to stdout
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a client to the underlying File source.
func NewClient ¶
func NewClient(options ...ClientOptionFunc) (*Client, error)
NewClient creates a default file client
type ClientOptionFunc ¶
ClientOptionFunc is a function that configures a Client. It is used in NewClient.
func WithURI ¶
func WithURI(uri string) ClientOptionFunc
WithURI defines the full path to the file, prefixed with file://, or stdout://
type File ¶
type File struct {
adaptor.BaseConfig
}
File is an adaptor that can be used as a source / sink for file's on disk, as well as a sink to stdout.
func (*File) Client ¶ added in v0.3.0
Client creates an instance of Client to be used for reading/writing to a file.
type Reader ¶
type Reader struct{}
Reader implements the behavior defined by client.Reader for interfacing with the file.
func (*Reader) Read ¶
func (r *Reader) Read(_ map[string]client.MessageSet, filterFn client.NsFilterFunc) client.MessageChanFunc
Click to show internal directories.
Click to hide internal directories.