gateway

package
v0.183.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

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