daemon

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: MIT Imports: 17 Imported by: 0

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"`
	Prefix        string   `json:"prefix"`
	Domain        string   `json:"domain"`
	Port          int      `json:"port"`
	Hostname      string   `json:"hostname"`
	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