server

package
v0.0.0-...-29fee77 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 21 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 Proto3Config

type Proto3Config struct {
	Address string
}

type SSHConfig

type SSHConfig struct {
	Address         string
	HostKeysBytes   [][]byte
	AuthorizedBytes []byte
	CheckPassword   func(user, password string) error
}

type Server

type Server struct {
	Engine          sql.Engine
	DefaultDatabase sql.Identifier
	// contains filtered or unexported fields
}

func (*Server) Close

func (svr *Server) Close() error

func (*Server) HandleSession

func (svr *Server) HandleSession(shfn evaluate.SessionHandler, user, typ, addr string)

func (*Server) ListenAndServeProto3

func (svr *Server) ListenAndServeProto3(p3Cfg Proto3Config) error

func (*Server) ListenAndServeSSH

func (svr *Server) ListenAndServeSSH(sshCfg SSHConfig) error

func (*Server) Shutdown

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

Jump to

Keyboard shortcuts

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