bench

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(scheme, host string, port int) string

func Quote

func Quote(value string) string

func Ready

func Ready(ctx context.Context, remote Remote, host, check string) error

Types

type Artifact

type Artifact struct {
	Host string
	Path string
	Name string
}

type Asset

type Asset struct {
	Local      string
	Remote     string
	Hosts      []string
	Executable bool
}

type Environment

type Environment struct {
	ID          string
	SFU         []string
	DataIPs     map[string]string
	BinariesDir string
}

func (Environment) DataIP

func (e Environment) DataIP(host string) string

func (Environment) Directory

func (e Environment) Directory() string

func (Environment) Host

func (e Environment) Host() string

func (Environment) Name

func (e Environment) Name(suffix string) string

type Hosts

type Hosts []string

func (*Hosts) UnmarshalYAML

func (h *Hosts) UnmarshalYAML(data []byte) error

type Plugin

type Plugin struct {
	ID                string
	Host              string
	Hosts             []string
	ReservedHosts     []string
	SenderRoomSize    int
	SenderJoinLimit   int
	SenderJoinSpacing string
	Ports             []Port
	CheckHosts        func() error
	NativeConfig      func(string) map[string]any
	BrowserURL        func(string, bool) string
	Services          []Service
	Start             func(context.Context, Remote) error
	Stop              func(context.Context, Remote) error
	PrepareRooms      func(context.Context, Remote, int) error
	Artifacts         []Artifact
	Assets            []Asset
}

func (Plugin) Validate

func (p Plugin) Validate(managed bool) error

type Port

type Port struct {
	Value   int
	Default int
}

type Remote

type Remote interface {
	Run(context.Context, string, string) (string, error)
	Write(context.Context, string, string, []byte) error
}

type Service

type Service struct {
	Host   string
	Name   string
	Image  string
	Health string
	Env    []string
}

Jump to

Keyboard shortcuts

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