rest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

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

Gateway represents the REST API gateway

func NewGateway

func NewGateway(cfg ServerConfig, logger *slog.Logger) (*Gateway, error)

NewGateway creates a new REST API gateway

func (*Gateway) Shutdown

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

Shutdown gracefully shuts down the gateway

func (*Gateway) Start

func (g *Gateway) Start(grpcAddress string) error

Start starts the REST gateway and connects to the gRPC server

type ServerConfig

type ServerConfig interface {
	GetHTTPAddress() string
}

ServerConfig represents server configuration

Jump to

Keyboard shortcuts

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