Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(runOpts RunOptions)
Run runs the server programmatically given a filename for the configuration file.
Types ¶
type RunOptions ¶
type RunOptions struct { // ConfigFiles is the array of config files to use. All files of the array // get merged together. ConfigFiles []string // Config is an alternate way to provide configuration and will be used // instead of parsing ConfigFile if ConfigFile is not specified. Config config.Configuration // DBConfig is the local M3DB config when running embedded. DBConfig *dbconfig.DBConfiguration // DBClient is the local M3DB client when running embedded. DBClient <-chan client.Client // ClusterClient is the local M3DB cluster client when running embedded. ClusterClient <-chan clusterclient.Client // InterruptCh is a programmatic interrupt channel to supply to // interrupt and shutdown the server. InterruptCh <-chan error // ListenerCh is a programmatic channel to receive the server listener // on once it has opened. ListenerCh chan<- net.Listener }
RunOptions provides options for running the server with backwards compatibility if only solely adding fields.
Click to show internal directories.
Click to hide internal directories.