Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeFile = Type(iota) TypePipe TypeGCP )
Variables ¶
This section is empty.
Functions ¶
func MakeGCPReader ¶ added in v0.2.10
func Save ¶ added in v0.2.10
func Save(name string, s *SavedParams) error
Types ¶
type Reader ¶
type Reader interface { // StreamInto feeds the strChan channel for every streamed line. StreamInto() error // Close finalises and invalidates this stream reader. Close() // ChanReader returns the outbound channel reader ChanReader() <-chan string // ErrorNotifier registers a callback func that's called upon fatal streaming log. ErrorNotifier(onError func(err error)) }
func MakeReader ¶
MakeReader builds a continues file/pipe streamer used to feed the logger. If fileName is not provided, it will attempt to consume the input from the stdin.
type SavedParams ¶ added in v0.2.10
type SavedParams struct { From string `yaml:"from,omitempty"` Filter string `yaml:"filter,omitempty"` Project string `yaml:"project,omitempty"` Template string `yaml:"template,omitempty"` }
func Load ¶ added in v0.2.10
func Load(name string) (*SavedParams, error)
func (*SavedParams) Print ¶ added in v0.2.10
func (spw *SavedParams) Print()
type SavedParamsWrapper ¶ added in v0.2.10
type SavedParamsWrapper struct { Name string `yaml:"name"` Params SavedParams `yaml:"params"` }
func List ¶ added in v0.2.10
func List() ([]*SavedParamsWrapper, error)
func (*SavedParamsWrapper) Print ¶ added in v0.2.10
func (spw *SavedParamsWrapper) Print()
Click to show internal directories.
Click to hide internal directories.