Documentation ¶
Index ¶
- func AddService(s *http.Server, name string, init func(), exit func())
- func CloseService()
- func ListServiceListenersFile() ([]*os.File, error)
- func RegisterOnStateChanged(f OnStateChanged)
- func SetMosnState(s State)
- func SetStateCode(s State)
- func StartService(inheritListeners []net.Listener) error
- func StopService()
- type OnStateChanged
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddService ¶
func RegisterOnStateChanged ¶
func RegisterOnStateChanged(f OnStateChanged)
func SetMosnState ¶
func SetMosnState(s State)
func SetStateCode ¶
func SetStateCode(s State)
func StartService ¶
func StopService ¶
func StopService()
Types ¶
type OnStateChanged ¶
type OnStateChanged func(s State)
Click to show internal directories.
Click to hide internal directories.