server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServerConn

func NewServerConn(network, addr string) (net.Listener, error)

Types

type Config

type Config struct {
	EOL       string
	AllowCmds []string
	TLS       *options.TLSOptions
}

type RFuncServer

type RFuncServer struct {
	Config    *Config
	Clipboard clipboard.Clipboard
	Shell     shell.Shell
	Logger    *log.Logger
	// contains filtered or unexported fields
}

func (*RFuncServer) Copy

func (s *RFuncServer) Copy(ctx context.Context, req *pb.CopyRequest) (*pb.CopyReply, error)

func (*RFuncServer) GracefulStop

func (s *RFuncServer) GracefulStop()

func (*RFuncServer) Log

func (s *RFuncServer) Log() *log.Logger

func (*RFuncServer) OpenURL

func (s *RFuncServer) OpenURL(ctx context.Context, req *pb.OpenURLRequest) (*pb.OpenURLReply, error)

func (*RFuncServer) Paste

func (s *RFuncServer) Paste(ctx context.Context, req *pb.PasteRequest) (*pb.PasteReply, error)

func (*RFuncServer) Run

func (s *RFuncServer) Run(lis net.Listener) error

func (*RFuncServer) Serve

func (s *RFuncServer) Serve(lis net.Listener) error

func (*RFuncServer) Stop

func (s *RFuncServer) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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