frontend

package
v0.0.0-...-afb774d Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArgsUserPass

func GetArgsUserPass() (user, name, pass string, err error)

func GetUserPass

func GetUserPass() (pass string, err error)

Types

type CopyFile

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

type FileClient

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

func NewFileClient

func NewFileClient(cfg *config.Config) *FileClient

func (*FileClient) CopyFile

func (c *FileClient) CopyFile(conn net.Conn, src, dst string) error

func (*FileClient) CopyFs

func (c *FileClient) CopyFs(conn net.Conn, src *os.File, dst string) error

func (*FileClient) Run

func (c *FileClient) Run(ctx context.Context) error

type FrontEnd

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

func NewFrontEnd

func NewFrontEnd(filename string) (*FrontEnd, error)

func (*FrontEnd) Run

func (f *FrontEnd) Run(ctx context.Context) error

type ProxyClient

type ProxyClient struct {
	Type webrtc.SDPType
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(cfg *config.Config, pt webrtc.SDPType) (*ProxyClient, error)

func (*ProxyClient) Run

func (p *ProxyClient) Run(ctx context.Context) error

type SshClient

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

func NewSshClient

func NewSshClient(sigAddr string) *SshClient

func (*SshClient) Run

func (c *SshClient) Run(user, name, pass string) error

type SshHeader

type SshHeader struct {
	User string `json:"user,omitempty"`
	Pass string `json:"pass,omitempty"`
	Key  []byte `json:"key,omitempty"`
}

Jump to

Keyboard shortcuts

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