sidecar

package
v0.0.0-...-41f517b Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServerClosed = errors.New("server closed")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr               string `yaml:"addr"`
	TransportAddr      string `yaml:"transport_addr"`
	InsecureSkipVerify bool   `yaml:"insecure_skip_verify"`
}

type Conn

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

type Server

type Server struct {
	Addr            string
	TransportAddr   string
	TransportClient *http.Client
	// contains filtered or unexported fields
}

func NewServer

func NewServer(conf *Config) (*Server, error)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() (err error)

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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