web

package
v0.0.0-...-46646b9 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port           string
	AllowedOrigins []string
	CORSEnabled    bool
	AuthToken      string
}

Config represents the gRPC-Web server configuration

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns the default gRPC-Web server configuration

type WebServer

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

WebServer represents a gRPC-Web server

func NewWebServer

func NewWebServer(config *Config, logger *slog.Logger) *WebServer

NewWebServer creates a new gRPC-Web server instance

func (*WebServer) Start

func (s *WebServer) Start() error

Start starts the gRPC-Web server

func (*WebServer) Stop

func (s *WebServer) Stop() error

Stop stops the gRPC-Web server gracefully

Jump to

Keyboard shortcuts

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