zeromq

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvPrivateKey     = "PRIVATE_KEY"
	EnvAuthorizedKeys = "AUTHORIZED_KEYS"

	DefaultPrivateKeyPath     = "./manager.key"
	DefaultAuthorizedKeysPath = "./authorized_keys"
)
View Source
const (
	EnvDebug       = "DEBUG"        // print debug messages
	EnvDisableAuth = "DISABLE_AUTH" // disable authentication completely
)
View Source
const (
	DomainAll = "*" // ZAP Domain for access control (https://rfc.zeromq.org/spec:27/ZAP)
)

Variables

This section is empty.

Functions

func AddClientKey

func AddClientKey(id, key string) error

TODO add mutex or synchronize it using the pipe channel

func NewCurveKeypair

func NewCurveKeypair(privateFile, publicFile string) error

func StartServer

func StartServer(pubEndpoint, subEndpoint string) (*zmqClient, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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