lupad

package
v0.0.0-...-37e2758 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoleNone  = ""
	RoleUser  = "user"
	RoleAdmin = "admin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHToMDB

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

func BindHandlers

func BindHandlers(mdb *mdb.MachineDB, sshSrv *sshd.Server) *SSHToMDB

func (*SSHToMDB) Get

func (s *SSHToMDB) Get(conn *ssh.ServerConn, msg interface{}) (interface{}, error)

func (*SSHToMDB) Put

func (s *SSHToMDB) Put(conn *ssh.ServerConn, msg interface{}) (interface{}, error)

type Server

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

func NewServer

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

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() 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