Documentation ¶
Overview ¶
Copyright 2021 Molecula Corp. All rights reserved.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { // Configuration. Config *Config Handler featurebase.HandlerI // contains filtered or unexported fields }
Command represents the state of the dax server command.
func NewCommand ¶
func NewCommand(stderr io.Writer, opts ...CommandOption) *Command
NewCommand returns a new instance of Command.
func (*Command) Address ¶
Address returns the advertise address at which the command can be reached.
type CommandOption ¶
func OptCommandConfig ¶
func OptCommandConfig(config *Config) CommandOption
func OptCommandServiceManager ¶
func OptCommandServiceManager(svcmgr *dax.ServiceManager) CommandOption
OptCommandServiceManager allows the ability to pass in a ServiceManage that has been initialized outside of the Command. This is useful for testing where we want to controll the service manager during a test run.
type ComputerOptions ¶
type Config ¶
type Config struct { // Bind is the host:port on which Pilosa will listen. Bind string `toml:"bind"` // Advertise is the address advertised by the server to other nodes // in the cluster. It should be reachable by all other nodes and should // route to an interface that Bind is listening on. Advertise string `toml:"advertise"` // Seed is used to seed the default rand.Source. If Seed is 0 (i.e. not set) // the default rand.Source will be seeded using the current time. Note: this // is not very useful at the moment because Table.CreateID() uses package // crypto/rand which doesn't honor this seed. Seed int64 `toml:"seed"` // Verbose toggles verbose logging which can be useful for debugging. Verbose bool `toml:"verbose"` // LogPath configures where Pilosa will write logs. LogPath string `toml:"log-path"` MDS MDSOptions `toml:"mds"` Queryer QueryerOptions `toml:"queryer"` Computer ComputerOptions `toml:"computer"` }
Config represents the configuration for the command.
func NewConfig ¶
func NewConfig() *Config
NewConfig returns an instance of Config with default options.
func (*Config) MustValidate ¶
func (c *Config) MustValidate()
MustValidate is carried over from server/config.go; it's just a stubbed out no-op for now.