Documentation ¶
Index ¶
- Constants
- Variables
- func LoadConfig() (srvCfg *rest.ServerConfig, err error)
- func NewServer(ipAddr string) (srv *rest.Server, err error)
- func RegisterServeMux(name string)
- func RegisterServeMuxHandleFunc(name, pattern string, f http.HandlerFunc)
- func RegisterServeMuxHandler(name, pattern string, h http.Handler)
- func RegisterServerHandleFunc(pattern string, f http.HandlerFunc)
- func RegisterServerHandler(pattern string, h http.Handler)
- type ServerHandler
Constants ¶
View Source
const CtxStartTimestamp = "x-start-timestamp"
Variables ¶
View Source
var (
DefaultServerMux = http.NewServeMux()
)
Functions ¶
func LoadConfig ¶
func LoadConfig() (srvCfg *rest.ServerConfig, err error)
func RegisterServeMux ¶
func RegisterServeMux(name string)
func RegisterServeMuxHandleFunc ¶
func RegisterServeMuxHandleFunc(name, pattern string, f http.HandlerFunc)
func RegisterServeMuxHandler ¶
func RegisterServerHandleFunc ¶
func RegisterServerHandleFunc(pattern string, f http.HandlerFunc)
func RegisterServerHandler ¶
Types ¶
type ServerHandler ¶
ServerHandler is a http handler for service-center api
func NewServerHandler ¶
func NewServerHandler(h http.Handler) *ServerHandler
NewServerHandler news a ServerHandler
func (*ServerHandler) ServeHTTP ¶
func (s *ServerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler
Click to show internal directories.
Click to hide internal directories.