config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 7 Imported by: 15

Documentation

Index

Constants

View Source
const (
	WalManagerDataDir = "/eventhorizon-data/store-live"

	SeekableStorePath = "/eventhorizon-data/store-seekable"

	CompressedEncryptedStorePath = "/eventhorizon-data/store-compressed_and_encrypted"

	// using AES-256
	AesKeyLenBytes = 32

	BoltDbDir = "/eventhorizon-data"

	WriterHttpPort = 9092

	WalSizeThreshold = uint64(4 * 1024 * 1024)

	ChunkRotateThreshold = 8 * 1024 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

configuration context is used to pass configuration to different components

func NewContext

func NewContext(discovery *ctypes.DiscoveryFile, scalableStoreUrl *url.URL) *Context

func (*Context) AuthToken

func (c *Context) AuthToken() string

func (*Context) GetCaCertificates

func (c *Context) GetCaCertificates() *x509.CertPool

since we control both the servers and clients, it's easy being our own CA when we control both the servers and clients. Just configure our sole CA cert as the trust anchor.

func (*Context) GetPubSubServerAddr

func (c *Context) GetPubSubServerAddr() string

func (*Context) GetPubSubServerBindAddr

func (c *Context) GetPubSubServerBindAddr() string

func (*Context) GetSignedServerCertificate

func (c *Context) GetSignedServerCertificate() tls.Certificate

returns a valid server certificate for this Writer's IP address

func (*Context) GetStreamEncryptionKey

func (c *Context) GetStreamEncryptionKey() []byte

TODO: have separate key per stream, provisioned in ChildStreamCreated? the only drawback is that then you cannot directly access streams by knowing their name, but rather walk to the stream hierarchy from the root stream to the leaf. TODO: do not store this (at least in plaintext) in scalablestore

func (*Context) GetWriterIp

func (c *Context) GetWriterIp() string

func (*Context) GetWriterPort

func (c *Context) GetWriterPort() int

func (*Context) GetWriterServerAddr

func (c *Context) GetWriterServerAddr() string

func (*Context) ScalableStoreUrl

func (c *Context) ScalableStoreUrl() *url.URL

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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