gateway

package
v0.180.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages the lifecycle of the gateway container or binary

func NewManager

func NewManager(sessionID convdomain.SessionID, cfg *config.Config, runtime containerruntime.ContainerRuntime) *Manager

NewManager creates a new gateway manager

func (*Manager) EnsureStarted

func (gm *Manager) 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 (*Manager) GetGatewayURL

func (gm *Manager) GetGatewayURL() string

GetGatewayURL returns the actual gateway URL with the assigned port

func (*Manager) IsRunning

func (gm *Manager) IsRunning() bool

IsRunning returns whether the gateway container is running

func (*Manager) Start

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

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

func (*Manager) Stop

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

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

Jump to

Keyboard shortcuts

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