sync

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EC_OK    = 0
	EC_ERROR = 1
)

Exit codes

View Source
const (
	DELAY_POSSIBLE_DOWN int64 = 15      // 15 sec
	DELAY_DOWN                = 60      // 1 min
	DELAY_DEAD                = 15 * 60 // 15 min
)

Variables

This section is empty.

Functions

func Start

func Start(app, ver, rev string) int

Start start sync daemon in master mode

func Stop

func Stop()

Stop gracefully stops sync daemon HTTP server

Types

type ClientInfo

type ClientInfo struct {
	CID            string
	Role           string
	Version        string
	Hostname       string
	IP             string
	LastSeen       int64
	LastSync       int64
	ConnectionDate int64
	State          API.ClientState
	Syncing        bool
}

type ClientsList

type ClientsList []*API.ClientInfo

func (ClientsList) Len

func (s ClientsList) Len() int

func (ClientsList) Less

func (s ClientsList) Less(i, j int) bool

func (ClientsList) Swap

func (s ClientsList) Swap(i, j int)

Jump to

Keyboard shortcuts

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