Documentation ¶
Index ¶
- func Actuator(w http.ResponseWriter, r *http.Request)
- func BuildRoutes(routes Routes, e *mux.Router) *mux.Router
- func DoHTTPRequest(httpAction HTTPAction) bool
- func Env(w http.ResponseWriter, r *http.Request)
- func Error(w http.ResponseWriter, r *http.Request)
- func GetLocalIP() string
- func Health(w http.ResponseWriter, r *http.Request)
- func Info(w http.ResponseWriter, r *http.Request)
- func Loggers(w http.ResponseWriter, r *http.Request)
- func Mappings(w http.ResponseWriter, r *http.Request)
- func Metrics(w http.ResponseWriter, r *http.Request)
- func Register(config EurekaConfig)
- func UpdateLogger(w http.ResponseWriter, r *http.Request)
- type Conf
- type Eureka
- type EurekaClient
- type EurekaConfig
- type EurekaRegistration
- type HTTPAction
- type Route
- type Routes
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Actuator ¶ added in v0.7.0
func Actuator(w http.ResponseWriter, r *http.Request)
Actuator Handler
func BuildRoutes ¶
BuildRoutes - Builds route handlers
func DoHTTPRequest ¶ added in v0.9.6
func DoHTTPRequest(httpAction HTTPAction) bool
DoHTTPRequest Accepts a Httpaction and a one-way channel to write the results to.
func GetLocalIP ¶
func GetLocalIP() string
GetLocalIP helper to get the lowest index interface ip address
func Mappings ¶ added in v0.9.0
func Mappings(w http.ResponseWriter, r *http.Request)
Mappings Handler
func UpdateLogger ¶ added in v0.9.0
func UpdateLogger(w http.ResponseWriter, r *http.Request)
UpdateLogger Handler
Types ¶
type Conf ¶ added in v0.9.91
type Conf struct { Name string `yaml:"name" json:"name"` Dir string `yaml:"servedir" json:"servedir"` Port string `yaml:"port" json:"conf"` SecurePort string `yaml:"secureport" json:"secureport"` Eureka string `yaml:"eurekahost" json:"eurekahost"` PreferIP bool `yaml:"preferip" json:"preferip"` RestSevice bool `yaml:"restservice" json:"restservice"` Secure bool `yaml:"secure" json:"secure"` }
Conf struct
type EurekaClient ¶
EurekaClient ...
type EurekaConfig ¶
type EurekaConfig struct { Name string URL string VipAddress string IPAddress string HostName string Port string SecurePort string RestService bool PreferIP bool Username string Password string Secure bool ServeDir string }
EurekaConfig ...
func GetFile ¶ added in v0.9.91
func GetFile(conf string) EurekaConfig
GetFile - get configuration file for settings
type EurekaRegistration ¶
type EurekaRegistration struct {
Instance instance `json:"instance"`
}
EurekaRegistration data type
type HTTPAction ¶ added in v0.9.6
type HTTPAction struct { Method string `yaml:"method"` URL string `yaml:"url"` Body string `yaml:"body"` Template string `yaml:"template"` Accept string `yaml:"accept"` ContentType string `yaml:"contentType"` Title string `yaml:"title"` StoreCookie string `yaml:"storeCookie"` }
HTTPAction data Type
type Route ¶
type Route struct { Name string Method string Pattern string Produces string Handler http.Handler Static bool }
Route data type
type Routes ¶
type Routes []Route
Routes to be combined with main app routes to set up API
func CombineRoutes ¶
CombineRoutes Combines routes from external source with actuator routes
Source Files ¶
Click to show internal directories.
Click to hide internal directories.