Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mode ¶ added in v0.8.0
type Mode int
Mode represents how gmbh interacts with the process of the service
type Service ¶ added in v0.8.0
type Service struct { ID string Path string Created time.Time Address string Mode Mode // LogPath is where the std{out,err} of service's process' output will be // directed LogPath string // Static data associated with the service // Static *config.ServiceStatic Static *config.ServiceConfig // If managed, Process will hold the process controller Process process.Manager }
Service represents a service including all static and runtime data
func NewService ¶ added in v0.8.0
func NewService(id string, conf *config.ServiceConfig) (*Service, error)
NewService tries to parse the required info from a config file located at path
func (*Service) EnableGracefulShutdown ¶ added in v0.9.1
func (s *Service) EnableGracefulShutdown()
EnableGracefulShutdown tells the process to stop attempting to restart
Click to show internal directories.
Click to hide internal directories.