internal

package
v0.0.0-...-452647d Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandler

func RegisterHandler(tp silk.Type, handler Handler)

func Serve

func Serve() error

Types

type Client

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

func (*Client) Ask

func (c *Client) Ask(p *silk.Package) (*silk.Package, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) Download

func (c *Client) Download(filename string, localFile string) error

func (*Client) Publish

func (c *Client) Publish(topic string, payload []byte) error

func (*Client) Send

func (c *Client) Send(p *silk.Package) error

func (*Client) TaskCreate

func (c *Client) TaskCreate(command string, conn io.ReadWriteCloser) (uint16, error)

func (*Client) TaskKill

func (c *Client) TaskKill(id uint16) error

func (*Client) TaskRun

func (c *Client) TaskRun(command string) (string, error)

func (*Client) TaskStart

func (c *Client) TaskStart(command string) error

func (*Client) TunnelBind

func (c *Client) TunnelBind(conn io.ReadWriteCloser) error

func (*Client) Upload

func (c *Client) Upload(filename string, localFile string) error

type Handler

type Handler func(c *Client, p *silk.Package)

type Handlers

type Handlers []Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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