http

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 14 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 {
	Enable     bool   `toml:"enable"`
	Listen     string `toml:"listen"`
	BasePath   string `toml:"base_path"`
	EnableCORS bool   `toml:"enable_cors"`
}

func DefaultConfig

func DefaultConfig() *Config

func (*Config) BasicCheck added in v0.15.0

func (*Config) BasicCheck() error

type Server

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

func NewServer

func NewServer(ctx context.Context, conf *Config) *Server

func (*Server) StartServer

func (s *Server) StartServer(grpcAddr string) error

func (*Server) StopServer

func (s *Server) StopServer()

Jump to

Keyboard shortcuts

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