server

package
v0.0.0-...-7cfb5ad Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	SocketAddr string
}

type Server

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

func New

func New(opts Options) *Server

New creates new netrat daemon.

func (*Server) HandleList

func (srv *Server) HandleList(ctx context.Context, r *msg.Request) (*msg.Response, error)

func (*Server) HandleListen

func (srv *Server) HandleListen(ctx context.Context, r *msg.Request) (*msg.Response, error)

func (*Server) HandleStat

func (srv *Server) HandleStat(ctx context.Context, r *msg.Request) (*msg.Response, error)

func (*Server) Run

func (srv *Server) Run(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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