Documentation ¶
Index ¶
- Constants
- Variables
- type Driver
- type FileLogDriver
- func (d *FileLogDriver) Close() (err error)
- func (d *FileLogDriver) Count(id string, pattern string) (n int, err error)
- func (d *FileLogDriver) Find(id string, pattern string, skip int, limit int) (lines []string, err error)
- func (d *FileLogDriver) Flush() (err error)
- func (d *FileLogDriver) Init() (err error)
- func (d *FileLogDriver) WriteLine(id string, line string) (err error)
- func (d *FileLogDriver) WriteLines(id string, lines []string) (err error)
- type FileLogDriverOptions
- type Message
- type Metadata
Constants ¶
View Source
const ( DriverTypeFile = "file" // raw file DriverTypeFs = "fs" // file system (SeaweedFS) DriverTypeMongo = "mongo" // mongodb DriverTypeEs = "es" // elastic search )
View Source
const (
MetadataName = "metadata.json"
)
Variables ¶
View Source
var ( ErrInvalidType = errors.New("invalid type") ErrNotImplemented = errors.New("not implemented") )
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { Init() (err error) Close() (err error) WriteLine(id string, line string) (err error) WriteLines(id string, lines []string) (err error) Find(id string, pattern string, skip int, limit int) (lines []string, err error) Count(id string, pattern string) (n int, err error) }
func GetFileLogDriver ¶
func GetFileLogDriver(options *FileLogDriverOptions) (driver Driver, err error)
func GetLogDriver ¶
type FileLogDriver ¶
type FileLogDriver struct {
// contains filtered or unexported fields
}
func (*FileLogDriver) Close ¶
func (d *FileLogDriver) Close() (err error)
func (*FileLogDriver) Count ¶
func (d *FileLogDriver) Count(id string, pattern string) (n int, err error)
func (*FileLogDriver) Flush ¶
func (d *FileLogDriver) Flush() (err error)
func (*FileLogDriver) Init ¶
func (d *FileLogDriver) Init() (err error)
func (*FileLogDriver) WriteLine ¶
func (d *FileLogDriver) WriteLine(id string, line string) (err error)
func (*FileLogDriver) WriteLines ¶
func (d *FileLogDriver) WriteLines(id string, lines []string) (err error)
type FileLogDriverOptions ¶
Click to show internal directories.
Click to hide internal directories.