sidecar

package
v0.0.0-...-c109403 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 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"`
}

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