kimchi

package module
v0.0.0-...-e788c4a Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2019 License: AGPL-3.0 Imports: 30 Imported by: 0

README

Run tests with the "WarpedEpoch" build time flag set to "true" to decrease epochtime.Period to 2 minutes and the pki recheck interval to 20 seconds.

Pass this flag at test time like this:

go test -timeout 0 -ldflags "-X github.com/katzenpost/kimchi/vendor/github.com/katzenpost/core/epochtime.WarpedEpoch=true -X github.com/katzenpost/kimchi/vendor/github.com/katzenpost/server/internal/pki.WarpedEpoch=true"

You can specify a specific test to run with the -run option, e.g.

go test -timeout 0 -ldflags "-X github.com/katzenpost/kimchi/vendor/github.com/katzenpost/core/epochtime.WarpedEpoch=true -X github.com/katzenpost/kimchi/vendor/github.com/katzenpost/server/internal/pki.WarpedEpoch=true" -run TestAuthorityJoinConsensus

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kimchi

type Kimchi struct {
	sync.Mutex
	sync.WaitGroup
	// contains filtered or unexported fields
}

func NewKimchi

func NewKimchi(basePort int, baseDir string, parameters *Parameters, voting bool, nVoting, nProvider, nMix int) *Kimchi

NewKimchi returns an initialized kimchi

func (*Kimchi) GetClientConfig

func (k *Kimchi) GetClientConfig() (*cConfig.Config, string, *ecdh.PrivateKey, error)

func (*Kimchi) LogTailer

func (k *Kimchi) LogTailer(prefix, path string)

func (*Kimchi) PKIClient

func (k *Kimchi) PKIClient() (pki.Client, error)

func (*Kimchi) Run

func (k *Kimchi) Run()

func (*Kimchi) Shutdown

func (k *Kimchi) Shutdown()

type Parameters

type Parameters struct {
	vConfig.Parameters
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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