sidecar

package
v0.0.0-...-fdc8947 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultServerAddr    = "127.0.0.1:3306"
	DefaultServerVersion = "8.0.11-hersql-0.1.0"
)

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"`
	Version            string `yaml:"version"`
}

type Conn

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

type Server

type Server struct {
	// 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