daemon

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: MIT Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ProtocolHTTPS = "https"
	ProtocolTCP   = "tcp"
	ProtocolTLS   = "tls"

	StatusReconnecting = "reconnecting"
	StatusOnline       = "online"
	StatusOffline      = "offline"
)

Variables

This section is empty.

Functions

func Start

func Start()

Types

type Daemon

type Daemon struct {
}

func (*Daemon) PS

func (d *Daemon) PS(req *PSRequest, rep *PSReply) error

func (*Daemon) RM

func (d *Daemon) RM(req *RMRequest, rep *RMReply) error

func (*Daemon) Start

func (d *Daemon) Start(req *StartRequest, rep *StartReply) error

func (*Daemon) Stop

func (d *Daemon) Stop(req *StopRequest, rep *StopReply) error

type Error

type Error struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type PSReply

type PSReply struct {
	Tunnels []*Tunnel
}

type PSRequest

type PSRequest struct {
}

type Protocol

type Protocol string

type RMReply

type RMReply struct {
}

type RMRequest

type RMRequest struct {
	Name string
}

type StartReply

type StartReply struct {
}

type StartRequest

type StartRequest struct {
	Name     string
	Address  string
	Protocol Protocol
}

type Status

type Status string

type StopReply

type StopReply struct {
}

type StopRequest

type StopRequest struct {
	Name string
}

type Tunnel

type Tunnel struct {
	Name          string   `json:"name"`
	Protocol      Protocol `json:"protocol"`
	Subdomain     string   `json:"subdomain"`
	Domain        string   `json:"domain"`
	Port          int      `json:"port"`
	Host          string   `json:"host"`
	User          string
	RemoteHost    string
	RemotePort    int
	RemoteURI     string
	TargetAddress string
	TargetHost    string
	TargetPort    int
	Status        string
	CreatedAt     time.Time
	HideBanner    bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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