Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalComponent ¶
type LocalComponent struct { framework.Component Name string LogFile string // contains filtered or unexported fields }
LocalComponent is a local fortio server componment
func NewLocalComponent ¶
func NewLocalComponent(n, logDir string) *LocalComponent
NewLocalComponent create a LocalComponent with name and log dir
func (*LocalComponent) Cleanup ¶
func (fortioServerComp *LocalComponent) Cleanup() error
Cleanup clean up tmp files and other resource created by LocalComponent
func (*LocalComponent) GetName ¶
func (fortioServerComp *LocalComponent) GetName() string
GetName implement the function in component interface
func (*LocalComponent) IsAlive ¶
func (fortioServerComp *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) Start ¶
func (fortioServerComp *LocalComponent) Start() (err error)
Start brings up a local fortio echo server
func (*LocalComponent) Stop ¶
func (fortioServerComp *LocalComponent) Stop() (err error)
Stop stop this local component by kill the process
Click to show internal directories.
Click to hide internal directories.