Versions in this module Expand all Collapse all v0 v0.2.0 May 29, 2018 Changes in this version + func HTTPHandlerProvider(p *proxy.Proxy) (proxy.HTTPHandler, error) + func HandlerProviderFunc(provider handlerProvider) + type HandlerFunc func(context.Context, Request) (Response, error) + type Request struct + Body []byte + Header http.Header + Method string + Path []string + type Response struct + Body []byte + Header http.Header + Status int + func ResponseFromError(err error) (Response, error) + func SuccessfulResponse(value interface{}) (Response, error) + type WebDriverHub struct + Debugger *debugger.Debugger + Proxy *proxy.Proxy + func (h *WebDriverHub) AddReusableSession(session *WebDriverSession) error + func (h *WebDriverHub) AddSession(id string, session *WebDriverSession) + func (h *WebDriverHub) GetActiveSessions() []string + func (h *WebDriverHub) GetReusableSession(ctx context.Context, caps *capabilities.Capabilities) (*WebDriverSession, bool) + func (h *WebDriverHub) GetSession(id string) *WebDriverSession + func (h *WebDriverHub) Healthy(ctx context.Context) error + func (h *WebDriverHub) Name() string + func (h *WebDriverHub) NextID() int + func (h *WebDriverHub) RemoveSession(id string) + func (h *WebDriverHub) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (h *WebDriverHub) Shutdown(ctx context.Context) error + type WebDriverSession struct + ID int + Metadata *metadata.Metadata + RequestedCaps *capabilities.Capabilities + WebDriverHub *WebDriverHub + func CreateSession(id int, hub *WebDriverHub, driver webdriver.WebDriver, ...) (*WebDriverSession, error) + func (s *WebDriverSession) Name() string + func (s *WebDriverSession) Quit(ctx context.Context, _ Request) (Response, error) + func (s *WebDriverSession) Unpause(id int)