testutil

package
v0.0.0-...-37d830e Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2015 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var INVITE_KEY = []byte("very secret text in the source")

Functions

func CreateConfigs

func CreateConfigs(t *testing.T, numCoreServers, numVerifiers, numSubscribers uint) (dirs []string, clientConfig *Config, teardown func())

func MakeToken

func MakeToken() []byte

Types

type TestingCA

type TestingCA struct {
	Rand    io.Reader
	Key     *ecdsa.PrivateKey
	Cert    *x509.Certificate
	CertDER []byte
	Pool    *x509.CertPool
	Config  *tls.Config
}

func NewTestingCA

func NewTestingCA(rnd io.Reader) (ret *TestingCA, err error)

func (*TestingCA) NewCertAndKeyToFiles

func (tca *TestingCA) NewCertAndKeyToFiles(certfile, keyfile string) error

Jump to

Keyboard shortcuts

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