server

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: EUPL-1.2 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server) error

func WithAuthorizedKeysDB

func WithAuthorizedKeysDB(authKeysDB authKeysDB) Option

func WithCredentialProvider added in v1.1.0

func WithCredentialProvider(provider credential.Provider) Option

func WithHostKeysDB added in v1.6.0

func WithHostKeysDB(hostKeysDB *hostKeysDB) Option

func WithRateLimit

func WithRateLimit(rateLimit *ratelimit.RateLimit) Option

type Server

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

func NewServer

func NewServer(cfg *config.Config, opts ...Option) (*Server, error)

func (*Server) Address

func (srv *Server) Address() *net.TCPAddr

func (*Server) Config

func (srv *Server) Config() config.Config

func (*Server) Done

func (srv *Server) Done() <-chan struct{}

func (*Server) Metrics added in v1.2.0

func (srv *Server) Metrics() *metrics.Metrics

func (*Server) Signer

func (srv *Server) Signer() ssh.Signer

func (*Server) Start

func (srv *Server) Start() error

func (*Server) Stop

func (srv *Server) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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