Documentation
¶
Index ¶
- type Service
- func (s *Service) Cleanup() (err error)
- func (s *Service) HandleSIGHUP()
- func (s *Service) HandleSIGINT()
- func (s *Service) IsRunning() (running bool)
- func (s *Service) LogError(err error)
- func (s *Service) LogErrorF(format string, argv ...interface{})
- func (s *Service) LogInfoF(format string, argv ...interface{})
- func (s *Service) SendSignal(sig syscall.Signal) (err error)
- func (s *Service) Start() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
Name string
User string
Group string
PidFile string
LogFile string
SigINT chan os.Signal
SigHUP chan os.Signal
BindFn func() (err error)
ServeFn func() (err error)
StopFn func() (err error)
ReloadFn func() (err error)
sync.RWMutex
// contains filtered or unexported fields
}
func (*Service) HandleSIGHUP ¶
func (s *Service) HandleSIGHUP()
func (*Service) HandleSIGINT ¶
func (s *Service) HandleSIGINT()
Click to show internal directories.
Click to hide internal directories.