Documentation ¶
Index ¶
- Constants
- func AddService(s *http.Server, name string, init func(), exit func())
- func CloseService()
- func Dump() ([]byte, error)
- func GetMOSNConfig(typ string) interface{}
- 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(cfg *v2.MOSNConfig)
- func SetMosnState(s State)
- func SetRouter(routerName string, router v2.RouterConfiguration)
- func SetStateCode(s State)
- func StartService(inheritListeners []net.Listener) error
- func StopService()
- type ConfigAutoFeature
- type OnStateChanged
- type State
Constants ¶
View Source
const ( CfgTypeMOSN = "MOSN" CfgTypeRouter = "Router" CfgTypeCluster = "Cluster" CfgTypeListener = "Listener" )
View Source
const ConfigAutoWrite featuregate.Feature = "auto_config"
Variables ¶
This section is empty.
Functions ¶
func AddService ¶
func GetMOSNConfig ¶ added in v0.13.0
func GetMOSNConfig(typ string) interface{}
func RegisterOnStateChanged ¶
func RegisterOnStateChanged(f OnStateChanged)
func RemoveClusterConfig ¶
func RemoveClusterConfig(clusterName string)
func SetClusterConfig ¶
func SetListenerConfig ¶
SetListenerConfig Set listener config when AddOrUpdateListener
func SetMosnConfig ¶ added in v0.11.0
func SetMosnConfig(cfg *v2.MOSNConfig)
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 ConfigAutoFeature ¶ added in v0.11.0
type ConfigAutoFeature struct { featuregate.BaseFeatureSpec // contains filtered or unexported fields }
ConfigAutoFeature controls xDS update config will overwrite config file or not, default is not
func (*ConfigAutoFeature) InitFunc ¶ added in v0.11.0
func (f *ConfigAutoFeature) InitFunc()
type OnStateChanged ¶
type OnStateChanged func(s State)
Click to show internal directories.
Click to hide internal directories.