Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CfgEnabled enables the sentry worker. CfgEnabled = "worker.sentry.enabled" // CfgControlPort configures the sentry worker's control port. CfgControlPort = "worker.sentry.control.port" // CfgAuthorizedControlPubkeys configures the public keys of upstream nodes // that are allowed to connect to the sentry control endpoint. CfgAuthorizedControlPubkeys = "worker.sentry.control.authorized_pubkey" )
Variables ¶
View Source
var Flags = flag.NewFlagSet("", flag.ContinueOnError)
Flags has the configuration flags.
Functions ¶
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker is a sentry node worker providing its address(es) to other nodes and enabling them to hide their real address(es).
func (*Worker) Cleanup ¶
func (w *Worker) Cleanup()
Cleanup performs the service specific post-termination cleanup.
Click to show internal directories.
Click to hide internal directories.