charond

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package charond ...

Index

Constants

View Source
const (
	// MonitoringEnginePrometheus ...
	MonitoringEnginePrometheus = "prometheus"
)
View Source
const (
	// UserConfirmationTokenUsed is a value that is used when confirmation token was already used.
	UserConfirmationTokenUsed = "!"
)

Variables

This section is empty.

Functions

func TestDaemon

func TestDaemon(t *testing.T, opts TestDaemonOpts) (net.Addr, io.Closer)

TestDaemon returns address of fully started in-memory daemon and closer to close it.

Types

type Daemon

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

Daemon ...

func NewDaemon

func NewDaemon(opts DaemonOpts) *Daemon

NewDaemon ...

func (*Daemon) Addr

func (d *Daemon) Addr() net.Addr

Addr returns net.Addr that rpc service is listening on.

func (*Daemon) Close

func (d *Daemon) Close() (err error)

Close implements io.Closer interface.

func (*Daemon) Run

func (d *Daemon) Run() (err error)

Run ...

type DaemonOpts

type DaemonOpts struct {
	Test                  bool
	Monitoring            bool
	TLS                   bool
	TLSCertFile           string
	TLSKeyFile            string
	PostgresAddress       string
	PostgresDebug         bool
	PasswordBCryptCost    int
	MnemosyneAddress      string
	LDAP                  bool
	LDAPAddress           string
	LDAPDistinguishedName string
	LDAPPassword          string
	Logger                log.Logger
	RPCListener           net.Listener
	DebugListener         net.Listener
}

DaemonOpts ...

type TestDaemonOpts

type TestDaemonOpts struct {
	MnemosyneAddress string
	PostgresAddress  string
}

TestDaemonOpts represent set of options that can be passed to the TestDaemon constructor.

Jump to

Keyboard shortcuts

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