gatelm

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend = internalconfig.Backend

type CircuitBreakerConfig

type CircuitBreakerConfig = internalconfig.CircuitBreakerConfig

type Config

type Config = internalconfig.Config

func LoadConfig

func LoadConfig(path string) (Config, error)

func ValidateConfig

func ValidateConfig(cfg Config) (Config, error)

type ConsoleConfig

type ConsoleConfig = internalconfig.ConsoleConfig

type Gateway

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

func New

func New(opts Options) (*Gateway, error)

func (*Gateway) Close

func (g *Gateway) Close() error

func (*Gateway) CurrentConfig

func (g *Gateway) CurrentConfig() Config

func (*Gateway) Handler

func (g *Gateway) Handler() http.Handler

func (*Gateway) RegisterConsoleRoutes

func (g *Gateway) RegisterConsoleRoutes(mux *http.ServeMux, basePath string)

func (*Gateway) Reload

func (g *Gateway) Reload(cfg Config) error

func (*Gateway) ServeHTTP

func (g *Gateway) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Gateway) Shutdown

func (g *Gateway) Shutdown(ctx context.Context) error

type HealthCheckConfig

type HealthCheckConfig = internalconfig.HealthCheckConfig

type Model

type Model = internalconfig.Model

type ModelDefaultConfig

type ModelDefaultConfig = internalconfig.ModelDefaultConfig

type Options

type Options struct {
	Config     Config
	ConfigPath string
	Debug      bool
	DebugDir   string
	HTTPClient *http.Client
}

type TokenLogConfig

type TokenLogConfig = internalconfig.TokenLogConfig

Jump to

Keyboard shortcuts

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