Documentation
¶
Index ¶
Constants ¶
View Source
const SchemaLocation = document.SchemaBase + "/proxy/v0"
Variables ¶
View Source
var (
ErrClientNotFound = errors.New("client not found")
)
Functions ¶
This section is empty.
Types ¶
type Disconnect ¶
func NewDisconnect ¶
func NewDisconnect() *Disconnect
type HttpRequest ¶
type HttpRequest struct {
document.Base
URL string `json:"url"`
Query string `json:"query,omitempty"`
Headers map[string]string `json:"headers"`
Method string `json:"method"`
Body string `json:"body"`
}
func NewHttpRequest ¶
func NewHttpRequest(url string) *HttpRequest
type HttpResponse ¶
type HttpResponse struct {
document.Base
Headers map[string]string `json:"headers"`
ContentType string `json:"contentType"`
Status int `json:"status"`
Body string `json:"body"`
}
func NewHttpResponse ¶
func NewHttpResponse(id string, status int) *HttpResponse
type RegistrationRequest ¶
type RegistrationRequest struct {
document.Base
MandateToken string `json:"mandateToken"`
Session string `json:"session,omitempty"`
}
func NewRegistrationRequest ¶
func NewRegistrationRequest(mandateToken string) *RegistrationRequest
type RegistrationResponse ¶
type RegistrationResponse struct {
document.Base
KeyID string `json:"keyID"`
Hostname string `json:"hostname,omitempty"`
}
func NewRegistrationResponse ¶
func NewRegistrationResponse(id string, keyID string) *RegistrationResponse
type WSMessage ¶
type WSMessage struct {
document.Base
MessageType int `json:"messageType"`
Body string `json:"body"`
}
func NewWSMessage ¶
type WSRequest ¶
type WSRequest struct {
document.Base
URL string `json:"url"`
Query string `json:"query,omitempty"`
Headers map[string]string `json:"headers"`
}
func NewWSRequest ¶
type WSResponse ¶
func NewWSResponse ¶
func NewWSResponse(id string, ok bool) *WSResponse
type WSTeardown ¶
func NewWSTeardown ¶
func NewWSTeardown(id string) *WSTeardown
Click to show internal directories.
Click to hide internal directories.