api

package
v1.4.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MPL-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEventMask   = events.AllEvents &^ events.LocalChangeDetected &^ events.RemoteChangeDetected
	DiskEventMask      = events.LocalChangeDetected | events.RemoteChangeDetected
	EventSubBufferSize = 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	ExitUpgrading()
	Restart()
	Shutdown()
}

type Rater

type Rater interface {
	Rate() float64
}

type Service

type Service interface {
	suture.Service
	config.Committer
	WaitForStart() error
}

func New

func New(id protocol.DeviceID, cfg config.Wrapper, assetDir, tlsDefaultCommonName string, m model.Model, defaultSub, diskSub events.BufferedSubscription, evLogger events.Logger, discoverer discover.CachingMux, connectionsService connections.Service, urService *ur.Service, fss model.FolderSummaryService, errors, systemLog logger.Recorder, cpu Rater, contr Controller, noUpgrade bool) Service

Jump to

Keyboard shortcuts

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