secondary

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogID    string        // H(public key), then hex-encoded
	TreeID   int64         // Merkle tree identifier used by Trillian
	Prefix   string        // The portion between base URL and st/v0 (may be "")
	Deadline time.Duration // Deadline used for gRPC requests
	Interval time.Duration // Signing frequency
}

Config is a collection of log parameters

type Secondary

type Secondary struct {
	Config
	PublicHTTPMux   *http.ServeMux
	InternalHTTPMux *http.ServeMux
	TrillianClient  db.Client     // provides access to the Trillian backend
	Signer          crypto.Signer // provides access to Ed25519 private key
	Primary         client.Client
}

Secondary is an instance of a secondary node

func (Secondary) Deadline

func (s Secondary) Deadline() time.Duration

func (Secondary) InternalHTTPHandlers

func (s Secondary) InternalHTTPHandlers() []handler.Handler

func (Secondary) LogID

func (s Secondary) LogID() string

func (Secondary) Prefix

func (s Secondary) Prefix() string

Implementing handler.Config

func (Secondary) Run

func (s Secondary) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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