adaptee

package module
v0.0.2-develop Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GitHub release (latest by date) Docker Pulls GitHub

adaptee

Selenoid-ui adaptor for selenosis

Available flags
[user@host]$ ./adaptee --help
adaptee is a adaptor sidecar for selenoid ui

Usage:
  adaptee [flags]

Flags:
      --port string                          adaptee port (default ":4444")
      --selenosis-url string                 selenosis url (default "http://selenosis:4444")
      --graceful-shutdown-timeout duration   time in seconds  gracefull shutdown timeout (default 30s)
  -h, --help                                 help for adaptee
Available endpoints
Protocol Endpoint
HTTP /status
WS /vnc/{sessionId}
WS /logs/{sessionId}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App ...

func New

func New(logger *log.Logger, conf Configuration) *App

New ...

func (*App) HandleStatus

func (app *App) HandleStatus(w http.ResponseWriter, r *http.Request)

HandleStatus ...

func (*App) HandleWs

func (app *App) HandleWs(w http.ResponseWriter, r *http.Request)

HandleWs ...

type Configuration

type Configuration struct {
	SelenosisURL string
}

Configuration ....

type Selenosis

type Selenosis struct {
	Total    int                 `json:"total"`
	Active   int                 `json:"active"`
	Pending  int                 `json:"pending"`
	Browsers map[string][]string `json:"config,omitempty"`
	Sessions []*Service          `json:"sessions,omitempty"`
}

Selenosis ...

type Service

type Service struct {
	SessionID string            `json:"id"`
	Labels    map[string]string `json:"labels"`
}

Service ...

Directories

Path Synopsis
cmd
adaptee command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址