config

package
v0.0.0-...-0a9ca34 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package config implements the unmarshalling of config files, into CT, Trillian, and database configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MetricsAddr string
	ServerAddr  string
	CertFile    string
	KeyFile     string

	LevelDBPath string

	B2AcctId string
	B2AppKey string
	B2Bucket string
	B2Url    string

	LeafCacheSize        int
	MaxUnsequencedLeaves int64
	MaxClients           int
	RequestTimeout       time.Duration

	Signer       SignerConfig
	LogConfigs   []*configpb.LogConfig
	AdminStorage storage.AdminStorage
}

func FromFile

func FromFile(path string) (*Config, error)

type SignerConfig

type SignerConfig struct {
	BatchSize   int
	RunInterval time.Duration
	GuardWindow time.Duration
}

Jump to

Keyboard shortcuts

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