Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { Addr string // TCP address to listen on, ":http" if empty Handler http.Handler Logger log.Logger Config *config.RPCConfig }
Server defines parameters for running an Inspector rpc server.
func (*Server) ListenAndServe ¶
ListenAndServe listens on the address specified in srv.Addr and handles any incoming requests over HTTP using the Inspector rpc handler specified on the server.
func (*Server) ListenAndServeTLS ¶
ListenAndServeTLS listens on the address specified in srv.Addr. ListenAndServeTLS handles incoming requests over HTTPS using the Inspector rpc handler specified on the server.
Click to show internal directories.
Click to hide internal directories.