Help us shape the future of Go! Take the 2026 Go Developer Survey

gateway

package
v0.230.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Supervisor added in v0.207.0

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

Supervisor manages the lifecycle of the gateway container or binary

func NewSupervisor added in v0.207.0

func NewSupervisor(sessionID convdomain.SessionID, cfg *config.Config, runtime containerruntime.ContainerRuntime) *Supervisor

NewSupervisor creates a new gateway manager

func (*Supervisor) EnsureStarted added in v0.207.0

func (gm *Supervisor) EnsureStarted() error

EnsureStarted starts the gateway if configured and not already running This is a convenience method that checks config and running state before starting

func (*Supervisor) GetGatewayURL added in v0.207.0

func (gm *Supervisor) GetGatewayURL() string

GetGatewayURL returns the actual gateway URL with the assigned port

func (*Supervisor) IsRunning added in v0.207.0

func (gm *Supervisor) IsRunning() bool

IsRunning returns whether the gateway container is running

func (*Supervisor) Start added in v0.207.0

func (gm *Supervisor) Start(ctx context.Context) error

Start starts the gateway container or binary if configured to run locally

func (*Supervisor) Stop added in v0.207.0

func (gm *Supervisor) Stop(ctx context.Context) error

Stop stops the gateway container or binary and cleans up the network

func (*Supervisor) Version added in v0.207.0

func (gm *Supervisor) Version(ctx context.Context) string

Version reports the version of the gateway serving at the managed URL, or "" when it cannot be determined. The gateway's /version endpoint wins; managed modes fall back to the cached binary or the configured container image tag. Externally managed gateways (Gateway.Run off) have no local source to ask.

Jump to

Keyboard shortcuts

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