sks

package
v1.0.0-...-9f5453b Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: AGPL-3.0 Imports: 19 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DigestZp

func DigestZp(digest string) (*cf.Zp, error)

func NewPrefixTree

func NewPrefixTree(path string, s *recon.Settings) (recon.PrefixTree, error)

func StatsFilename

func StatsFilename(path string) string

Types

type LoadStat

type LoadStat struct {
	Inserted int
	Updated  int
}

type LoadStatMap

type LoadStatMap map[time.Time]*LoadStat

func (LoadStatMap) MarshalJSON

func (m LoadStatMap) MarshalJSON() ([]byte, error)

func (LoadStatMap) UnmarshalJSON

func (m LoadStatMap) UnmarshalJSON(b []byte) error

type Peer

type Peer struct {
	// contains filtered or unexported fields
}

func NewPeer

func NewPeer(st storage.Storage, path string, s *recon.Settings) (*Peer, error)

func (*Peer) Start

func (r *Peer) Start()

func (*Peer) Stats

func (r *Peer) Stats() *Stats

func (*Peer) Stop

func (r *Peer) Stop()

type Stats

type Stats struct {
	Total int

	Hourly LoadStatMap
	Daily  LoadStatMap
	// contains filtered or unexported fields
}

func NewStats

func NewStats() *Stats

func (*Stats) ReadFile

func (s *Stats) ReadFile(path string) error

func (*Stats) Update

func (s *Stats) Update(kc storage.KeyChange)

func (*Stats) WriteFile

func (s *Stats) WriteFile(path string) error

Jump to

Keyboard shortcuts

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