Documentation ¶
Index ¶
- func AddService(s *http.Server, name string, init func(), exit func())
- func CloseService()
- func Dump() ([]byte, error)
- func ListServiceListenersFile() ([]*os.File, error)
- func RegisterOnStateChanged(f OnStateChanged)
- func RemoveClusterConfig(clusterName string)
- func Reset()
- func SetClusterConfig(clusterName string, cluster v2.Cluster)
- func SetHosts(clusterName string, hostConfigs []v2.Host)
- func SetListenerConfig(listenerName string, listenerConfig v2.Listener)
- func SetMOSNConfig(msonConfig interface{})
- func SetMosnState(s State)
- func SetRouter(routerName string, router v2.RouterConfiguration)
- 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 RemoveClusterConfig ¶
func RemoveClusterConfig(clusterName string)
func SetClusterConfig ¶
func SetListenerConfig ¶
SetListenerConfig Set listener config when AddOrUpdateListener
func SetMOSNConfig ¶
func SetMOSNConfig(msonConfig interface{})
func SetMosnState ¶
func SetMosnState(s State)
func SetRouter ¶
func SetRouter(routerName string, router v2.RouterConfiguration)
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.