Documentation ¶
Overview ¶
Package tdb is a generated protocol buffer package.
It is generated from these files:
tdb.proto
It has these top-level messages:
Info
Index ¶
- Variables
- type Info
- type TDB
- func (db *TDB) AddAction(target string, ts uint32) error
- func (db *TDB) AddSlot(target string, start, howlong uint32) error
- func (db *TDB) Arch() (string, error)
- func (db *TDB) CheckExpirations() error
- func (db *TDB) CreateAt() (uint32, error)
- func (db *TDB) GetActions() ([]string, []uint32, []uint32, error)
- func (db *TDB) GetSlots(target string, start, end uint32) ([][]uint32, [][]uint32, error)
- func (db *TDB) GetTargets() []string
- func (db *TDB) Host() (string, error)
- func (db *TDB) OS() (string, error)
- func (db *TDB) Tag() (string, error)
- func (db *TDB) Username() (string, error)
- func (db *TDB) Version() (uint8, error)
- func (db *TDB) ZoneOffset() (int32, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPathNotFolder path is not a folder ErrPathNotFolder = errors.New("path for is not a folder") // ErrPathNotFile path is not a file ErrPathNotFile = errors.New("path is not a file") // ErrNotExist something not exist ErrNotExist = errors.New("not exist") // ErrRange the range is wrong ErrRange = errors.New("range is wrong") // ErrActionValue error for action value field ErrActionValue = errors.New("action value bytes wrong") )
Functions ¶
This section is empty.
Types ¶
type TDB ¶
type TDB struct {
// contains filtered or unexported fields
}
TDB is the entrance point.
func Open ¶
Open creates an instance of TDB. "p" should be a path for folder, if not exist, create one.
func (*TDB) CheckExpirations ¶ added in v0.2.1
CheckExpirations to check expired actions
func (*TDB) GetActions ¶ added in v0.2.0
GetActions to get all actions. return targets, starts, lasts, error
Click to show internal directories.
Click to hide internal directories.