Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleRequestAndRedirect ¶
func HandleRequestAndRedirect(res http.ResponseWriter, req *http.Request)
HandleRequestAndRedirect given a request send it to the appropriate url
func LoadMap ¶
func LoadMap(config config.Configuration)
LoadMap loads the configuration to an array of MethodRegExp
Types ¶
type HandlerWrapper ¶
type HandlerWrapper func(w http.ResponseWriter, r *http.Request)
HandlerWrapper type for the ServeHTTP function
func (*HandlerWrapper) ServeHTTP ¶
func (h *HandlerWrapper) ServeHTTP(w http.ResponseWriter, r *http.Request)
type MethodRegExp ¶
MethodRegExp type representing a JSON-RPC method with a compiled RegExp entity
func NewMethodRegExp ¶
func NewMethodRegExp(name string, nameRegexp regexp.Regexp, proxyTo []string) MethodRegExp
NewMethodRegExp returns a new MethodRegExp instance
Click to show internal directories.
Click to hide internal directories.