Documentation
¶
Index ¶
- Constants
- Variables
- func Register(n *node.Node, r *Registry)
- type Open
- type Opened
- type Registry
- func (r *Registry) Add(ctx context.Context, raw string, seven bool) (link.Browser, error)
- func (r *Registry) Attach(l *link.Link)
- func (r *Registry) Handler() link.Handler
- func (r *Registry) Len() int
- func (r *Registry) List() []link.Browser
- func (r *Registry) OnAdd(fn func(ctx context.Context, id string, hostports []string))
- func (r *Registry) OnCheck(fn func(ctx context.Context, id string, hostports []string))
- func (r *Registry) Protect(origins []string) error
- func (r *Registry) Remove(id string) bool
- func (r *Registry) Watch(ctx context.Context, every time.Duration)
Constants ¶
View Source
const ( Kind = "cdp" Cap = "cdp" UpdateKind = "browsers" UpdateCap = "browsers" MaxMessage = 64 << 20 DialTimeout = 10 * time.Second ProbeTimeout = 5 * time.Second )
View Source
const (
ExtraHold = 2 * time.Second
)
View Source
const HistoryTimeout = 10 * time.Second
View Source
const HoldTimeout = 10 * time.Second
View Source
const (
LostGrace = 2 * time.Second
)
View Source
const (
)
View Source
const UpdateTimeout = 10 * time.Second
Variables ¶
View Source
var ErrUnknown = errors.New("no such browser")
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.