Documentation ¶
Index ¶
- type LastKeyEnd
- type Properties
- type StateFile
- func (s *StateFile) GetKey(key string) (int, LastKeyEnd)
- func (s *StateFile) GetLastCount() int
- func (s *StateFile) GetLastEndTS() int
- func (s *StateFile) GetLastKeyEndTS(key string) int
- func (s *StateFile) GetLastRequestTS() int
- func (s *StateFile) GetLastStartTS() int
- func (s *StateFile) Save() error
- func (s *StateFile) UpdateLastCount(count int)
- func (s *StateFile) UpdateLastEndTS(ts int)
- func (s *StateFile) UpdateLastKeyEndTS(key string, ts int)
- func (s *StateFile) UpdateLastRequestTS(ts int)
- func (s *StateFile) UpdateLastStartTS(ts int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LastKeyEnd ¶ added in v1.2.5
type Properties ¶
type Properties struct { LastStartTS int `json:"last_start_ts"` LastEndTS int `json:"last_end_ts"` LastCount int `json:"last_count"` LastRequestTS int `json:"last_request_ts"` LastUpdateTS int `json:"last_update_ts"` LastKeyEndTS []LastKeyEnd `json:"last_keys_end_ts"` }
func (*Properties) ToJsonBytes ¶
func (p *Properties) ToJsonBytes() []byte
type StateFile ¶
type StateFile struct { FileName string FilePath string StorageType string // contains filtered or unexported fields }
func (*StateFile) GetLastCount ¶
func (*StateFile) GetLastEndTS ¶
func (*StateFile) GetLastKeyEndTS ¶ added in v1.2.5
func (*StateFile) GetLastRequestTS ¶
func (*StateFile) GetLastStartTS ¶
func (*StateFile) UpdateLastCount ¶
func (*StateFile) UpdateLastEndTS ¶
func (*StateFile) UpdateLastKeyEndTS ¶ added in v1.2.5
func (*StateFile) UpdateLastRequestTS ¶
func (*StateFile) UpdateLastStartTS ¶
Click to show internal directories.
Click to hide internal directories.