httpserver

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDetail

type AppDetail struct {
	SidecarVersion string
}

type Router

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

func NewRouter

func NewRouter(config ServerConfig, app sidecar.AppInfo) (*Router, error)

func (*Router) Addr

func (hs *Router) Addr() string

func (*Router) RegisterService

func (hs *Router) RegisterService(ctx context.Context, service protoreflect.ServiceDescriptor, invoker proxy.AppConn) error

func (*Router) Run

func (hs *Router) Run(ctx context.Context) error

type ServerConfig

type ServerConfig struct {
	// Port to expose to the external LB
	PublicAddr  string   `env:"PUBLIC_ADDR" default:""`
	JWKS        []string `env:"JWKS" default:""`
	StaticFiles string   `env:"STATIC_FILES" default:""`
	CORSOrigins []string `env:"CORS_ORIGINS" default:""`
}

Jump to

Keyboard shortcuts

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