Documentation ¶
Index ¶
- type LocalCompConfig
- type LocalCompStatus
- type LocalComponent
- func (mixerComp *LocalComponent) GetConfig() framework.Config
- func (mixerComp *LocalComponent) GetName() string
- func (mixerComp *LocalComponent) GetStatus() framework.Status
- func (mixerComp *LocalComponent) IsAlive() (bool, error)
- func (mixerComp *LocalComponent) SetConfig(config framework.Config) error
- func (mixerComp *LocalComponent) Start() (err error)
- func (mixerComp *LocalComponent) Stop() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalCompConfig ¶
LocalCompConfig contains configs for LocalComponent
type LocalCompStatus ¶
LocalCompStatus contains status for LocalComponent
type LocalComponent ¶
LocalComponent is a component of local mixs binary in process
func NewLocalComponent ¶
func NewLocalComponent(n string, config LocalCompConfig) *LocalComponent
NewLocalComponent create a LocalComponent with name, log dir and config dir
func (*LocalComponent) GetConfig ¶
func (mixerComp *LocalComponent) GetConfig() framework.Config
GetConfig return the config for outside use
func (*LocalComponent) GetName ¶
func (mixerComp *LocalComponent) GetName() string
GetName implement the function in component interface
func (*LocalComponent) GetStatus ¶
func (mixerComp *LocalComponent) GetStatus() framework.Status
GetStatus return the status for outside use
func (*LocalComponent) IsAlive ¶
func (mixerComp *LocalComponent) IsAlive() (bool, error)
IsAlive check the process of local server is running TODO: Process running doesn't guarantee server is ready TODO: Need a better way to check if component is alive/running
func (*LocalComponent) SetConfig ¶
func (mixerComp *LocalComponent) SetConfig(config framework.Config) error
SetConfig set a config into this component
func (*LocalComponent) Start ¶
func (mixerComp *LocalComponent) Start() (err error)
Start brings up a local mixs using test config files in local file system
func (*LocalComponent) Stop ¶
func (mixerComp *LocalComponent) Stop() (err error)
Stop stop this local component by kill the process