Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProtocolHTTP = Protocol("http") ProtocolTCP = Protocol("tcp") ProtocolTLS = Protocol("tls") )
Variables ¶
View Source
var ( ConnectionStatusStatusOnline = ConnectionStatus("online") ConnectionStatusReconnecting = ConnectionStatus("reconnecting") )
Functions ¶
Types ¶
type Configuration ¶ added in v0.4.0
type ConnectReply ¶ added in v0.4.0
type ConnectReply struct { }
type ConnectRequest ¶ added in v0.4.0
type Connection ¶ added in v0.4.0
type Connection struct { ID string `json:"id"` Name string `json:"name"` Random bool `json:"random"` Hostname string `json:"hostname"` Port int `json:"port"` TargetAddress string `json:"target_address"` RemotePort string RemoteURI string `json:"remote_uri"` Status ConnectionStatus `json:"status"` ConnectedAt time.Time `json:"connected_at"` Configuration *Configuration `json:"-"` // contains filtered or unexported fields }
func (*Connection) Host ¶ added in v0.4.0
func (c *Connection) Host() (host string)
type ConnectionStatus ¶ added in v0.4.0
type ConnectionStatus string
type PSReply ¶
type PSReply struct {
Connections []*Connection
}
type Server ¶ added in v0.4.0
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Connect ¶ added in v0.4.0
func (s *Server) Connect(req *ConnectRequest, rep *ConnectReply) (err error)
Click to show internal directories.
Click to hide internal directories.