Documentation ¶
Index ¶
- Constants
- Variables
- type DB
- func (db *DB) Close(fix bool) error
- func (db *DB) Create(ext string, pos *Position) error
- func (db *DB) Delete(ext string) error
- func (db *DB) GetPositon() (pos Position, err error)
- func (db *DB) MakeFilefullPath(ext string) string
- func (db *DB) MakeRealFilePath(ext string) string
- func (db *DB) Open(ext string, pos *Position) error
- type DBFiles
- type DBpool
- type Decoder
- type FtailDB
- type FtailDBOptions
- type InvalidFtailDBError
- type Position
- type Recorder
- type Row
Constants ¶
View Source
const (
// FixExt 閉じられたファイルの拡張子
FixExt = ".fixed"
)
Variables ¶
View Source
var ( ErrTimePast = errors.New("Time is past.") ErrNotFound = errors.New("Key does not exist.") )
View Source
var DefaultOptions = &FtailDBOptions{ ReadOnly: false, Bin: true, }
View Source
var ErrUnknownPath = errors.New("Unknown path format.")
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct { RealFilePath string Path string Name string Time time.Time *FtailDB // contains filtered or unexported fields }
func (*DB) GetPositon ¶
func (*DB) MakeFilefullPath ¶
func (*DB) MakeRealFilePath ¶
type DBpool ¶
type DBpool struct { Path string Name string //outTime time.Time Period time.Duration // time.Minute // contains filtered or unexported fields }
type FtailDB ¶
func FtailDBOpen ¶
type FtailDBOptions ¶
type InvalidFtailDBError ¶
func (*InvalidFtailDBError) Error ¶
func (e *InvalidFtailDBError) Error() string
type Position ¶
type Position struct { Name string `json:"n,omitempty"` CreateAt time.Time `json:"ct,omitempty"` Offset int64 `json:"o,omitempty"` HeadHash string `json:"h,omitempty"` HashLength int64 `json:"hl,omitempty"` }
func GetPositon ¶
Click to show internal directories.
Click to hide internal directories.