Documentation ¶
Index ¶
- func DelHost(hostname string) error
- func DelService(serviceID string) error
- func DeleteRoute(routeGroupID, routePath, routeMethod string) error
- func OutputJSON() ([]byte, error)
- func SetHost(hostname string, host global.HostType) error
- func SetRoute(routeGroupID, routePath, routeMethod, serviceID string) error
- func SetService(service global.ServiceType) error
- type Data
- type Engine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelService ¶
func SetService ¶
func SetService(service global.ServiceType) error
Types ¶
type Data ¶
type Data struct { Hosts map[string]global.HostType `json:"hosts,omitempty"` Routes map[string]string `json:"routes,omitempty"` Services map[string]global.ServiceType `json:"services,omitempty"` }
func (Data) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Data) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Data) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Data) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.