mixer

package
v0.0.0-...-0000b31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

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 component of local mixs binary in process

func NewLocalComponent

func NewLocalComponent(n, logDir, configDir string) *LocalComponent

NewLocalComponent create a LocalComponent with name, log dir and config dir

func (*LocalComponent) Cleanup

func (mixerComp *LocalComponent) Cleanup() error

Cleanup clean up tmp files and other resource created by LocalComponent

func (*LocalComponent) GetName

func (mixerComp *LocalComponent) GetName() string

GetName implement the function in component interface

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) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL