ganalytics

package
v1.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LastKeyEnd added in v1.2.5

type LastKeyEnd struct {
	Key  string `json:"key"`
	Time int    `json:"time"`
}

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 NewStateFile

func NewStateFile(config map[string]string) (*StateFile, error)

func (*StateFile) GetKey added in v1.2.5

func (s *StateFile) GetKey(key string) (int, LastKeyEnd)

func (*StateFile) GetLastCount

func (s *StateFile) GetLastCount() int

func (*StateFile) GetLastEndTS

func (s *StateFile) GetLastEndTS() int

func (*StateFile) GetLastKeyEndTS added in v1.2.5

func (s *StateFile) GetLastKeyEndTS(key string) int

func (*StateFile) GetLastRequestTS

func (s *StateFile) GetLastRequestTS() int

func (*StateFile) GetLastStartTS

func (s *StateFile) GetLastStartTS() int

func (*StateFile) Save

func (s *StateFile) Save() error

func (*StateFile) UpdateLastCount

func (s *StateFile) UpdateLastCount(count int)

func (*StateFile) UpdateLastEndTS

func (s *StateFile) UpdateLastEndTS(ts int)

func (*StateFile) UpdateLastKeyEndTS added in v1.2.5

func (s *StateFile) UpdateLastKeyEndTS(key string, ts int)

func (*StateFile) UpdateLastRequestTS

func (s *StateFile) UpdateLastRequestTS(ts int)

func (*StateFile) UpdateLastStartTS

func (s *StateFile) UpdateLastStartTS(ts int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL