Documentation ¶
Index ¶
- type Server
- func (s *Server) GetMetaOrDefault(key string, defaultValue string) string
- func (s *Server) GetMetaOrDefaultInt(key string, defaultValue int) uint32
- func (s *Server) GetServiceName() string
- func (s *Server) GetUrl() *url.URL
- func (s *Server) GetWeight() uint32
- func (s *Server) IsAlive() bool
- func (s *Server) Proxy(w http.ResponseWriter, r *http.Request)
- func (s *Server) SetLiveness(alive bool) bool
- func (s *Server) SetWeight(weight uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
func (*Server) GetMetaOrDefault ¶
func (*Server) GetMetaOrDefaultInt ¶
func (*Server) GetServiceName ¶
TODO (Mo-Fatah): Implement this
func (*Server) SetLiveness ¶
Click to show internal directories.
Click to hide internal directories.