shared

package
v0.0.0-...-ac41614 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 10 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GarbageCollector

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

func NewGarbageCollector

func NewGarbageCollector(buckets *BucketList, gcInterval uint64, gcPurgeAge uint64) *GarbageCollector

func (*GarbageCollector) Start

func (garbageCollector *GarbageCollector) Start()

func (*GarbageCollector) Stop

func (garbageCollector *GarbageCollector) Stop()

type YAMLAlerts

type YAMLAlerts struct {
	ForwardInterval uint64 `yaml:"forwardInterval"`
}

type YAMLCloud

type YAMLCloud struct {
	ID         string `yaml:"id"`
	URI        string `yaml:"uri"`
	HistoryID  string `yaml:"historyID"`
	HistoryURI string `yaml:"historyURI"`
	AlertsID   string `yaml:"alertsID"`
	AlertsURI  string `yaml:"alertsURI"`
	NoValidate bool   `yaml:"noValidate"`
}

type YAMLHistory

type YAMLHistory struct {
	PurgeOnForward   bool   `yaml:"purgeOnForward"`
	EventLimit       uint64 `yaml:"eventLimit"`
	EventFloor       uint64 `yaml:"eventFloor"`
	PurgeBatchSize   int    `yaml:"purgeBatchSize"`
	ForwardInterval  uint64 `yaml:"forwardInterval"`
	ForwardBatchSize uint64 `yaml:"forwardBatchSize"`
	ForwardThreshold uint64 `yaml:"forwardThreshold"`
}

type YAMLPeer

type YAMLPeer struct {
	ID   string `yaml:"id"`
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
}

type YAMLServerConfig

type YAMLServerConfig struct {
	DBFile                   string       `yaml:"db"`
	Port                     int          `yaml:"port"`
	MaxSyncSessions          int          `yaml:"syncSessionLimit"`
	SyncSessionPeriod        uint64       `yaml:"syncSessionPeriod"`
	SyncPushBroadcastLimit   uint64       `yaml:"syncPushBroadcastLimit"`
	SyncExplorationPathLimit uint32       `yaml:"syncExplorationPathLimit"`
	GCInterval               uint64       `yaml:"gcInterval"`
	GCPurgeAge               uint64       `yaml:"gcPurgeAge"`
	MerkleDepth              uint8        `yaml:"merkleDepth"`
	NodeID                   string       `yaml:"nodeid"`
	Peers                    []YAMLPeer   `yaml:"peers"`
	TLS                      YAMLTLSFiles `yaml:"tls"`
	LogLevel                 string       `yaml:"logLevel"`
	Cloud                    *YAMLCloud   `yaml:"cloud"`
	History                  *YAMLHistory `yaml:"history"`
	Alerts                   *YAMLAlerts  `yaml:"alerts"`
}

func (*YAMLServerConfig) LoadFromFile

func (ysc *YAMLServerConfig) LoadFromFile(file string) error

type YAMLTLSFiles

type YAMLTLSFiles struct {
	ClientCertificate string `yaml:"clientCertificate"`
	ClientKey         string `yaml:"clientKey"`
	ServerCertificate string `yaml:"serverCertificate"`
	ServerKey         string `yaml:"serverKey"`
	Certificate       string `yaml:"certificate"`
	Key               string `yaml:"key"`
	RootCA            string `yaml:"rootCA"`
}

Jump to

Keyboard shortcuts

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