Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DiscoverServices ¶
func DiscoverServices()
DiscoverServices walks into the project path and looks in every subdirectory for the service.yml file. For every service it registers it after trying to import the package using Go's build.Import package
Types ¶
type Service ¶
type Service struct { Name string Description string Path string Color string // Path OrchestraPath string LogFilePath string PidFilePath string BinPath string // Process, Service and Package information FileInfo os.FileInfo PackageInfo *build.Package Process *os.Process Env []string Args []string Ports string }
Service encapsulates all the information needed for a service
type SortableRegistry ¶
type SortableRegistry []*Service
func Sort ¶
func Sort(r map[string]*Service) SortableRegistry
func (SortableRegistry) Len ¶
func (s SortableRegistry) Len() int
func (SortableRegistry) Less ¶
func (s SortableRegistry) Less(i, j int) bool
func (SortableRegistry) Swap ¶
func (s SortableRegistry) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.