Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
Functions ¶
func GetTLSConfig ¶
GetTLSConfig returns a TLS configuration appropriate for the current environment. In production mode, it uses standard certificate verification. In development mode, it allows self-signed certificates for localhost/127.0.0.1.
Types ¶
type Options ¶
type Options struct {
DbFilename string
MetaFilename string
DoReset bool
BootstrapConnect string
ServerId int64
Region string
AdvertiseAddress string
AdvertisePort uint
ApiKey string
SocketPath string
DevelopmentMode bool
// contains filtered or unexported fields
}
var CurrentOptions *Options
Click to show internal directories.
Click to hide internal directories.