Documentation ¶
Index ¶
- Variables
- func ToRPCEnvelope(msg Message) (*proto.Envelope, error)
- type AnswerOfferRequest
- type AnswerOfferResponse
- type BasicAuth
- type ClientSession
- type File
- type FinishedSessionRequest
- type FinishedSessionResponse
- type GetOfferRequest
- type GetOfferResponse
- type GotAnswerRequest
- type GotAnswerResponse
- type HTTPRequest
- type HTTPResponse
- type Handshake
- type Message
- type Ping
- type Report
- type ServerArrivalRequest
- type ServerArrivalResponse
- type SessionURLRequest
- type UpdatePingRateRequest
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidRequestType = fmt.Errorf("invalid request type")
Functions ¶
Types ¶
type AnswerOfferRequest ¶
func (*AnswerOfferRequest) Type ¶
func (a *AnswerOfferRequest) Type() string
type AnswerOfferResponse ¶
func (*AnswerOfferResponse) Type ¶
func (a *AnswerOfferResponse) Type() string
type ClientSession ¶
type ClientSession struct { Request *HTTPRequest `json:",omitempty"` Response *HTTPResponse `json:",omitempty"` File *File `json:",omitempty"` Error string `json:",omitempty"` }
type File ¶
type File struct { Name string `json:",omitempty"` Path string `json:",omitempty"` MIME string `json:",omitempty"` Size int64 `json:",omitempty"` TransferSize int64 `json:",omitempty"` TransferStartTime time.Time `json:",omitempty"` TransferEndTime time.Time `json:",omitempty"` TransferDuration time.Duration `json:",omitempty"` TransferRate int64 `json:",omitempty"` }
func FileFromEvent ¶
type FinishedSessionRequest ¶
sent from the oneshot server to the signalling server when a session has ended
func (*FinishedSessionRequest) Type ¶
func (f *FinishedSessionRequest) Type() string
type FinishedSessionResponse ¶
sent from the signalling server to the oneshot server when it has received the FinishedSessionRequest
func (*FinishedSessionResponse) Type ¶
func (f *FinishedSessionResponse) Type() string
type GetOfferRequest ¶
type GetOfferRequest struct { SessionID string Configuration *webrtc.Configuration `json:",omitempty"` }
sent from the signalling server to the oneshot server when a new session has been request by a client
func (*GetOfferRequest) Type ¶
func (g *GetOfferRequest) Type() string
type GetOfferResponse ¶
sent from the oneshot server to the signalling server when it has crafted an offer for the client requesting a session
func (*GetOfferResponse) Type ¶
func (g *GetOfferResponse) Type() string
type GotAnswerRequest ¶
sent from the signalling server to the oneshot server when a client has answered the offer
func (*GotAnswerRequest) Type ¶
func (g *GotAnswerRequest) Type() string
type GotAnswerResponse ¶
sent from the oneshot server to the signalling server when it has accepted the answer and started the session
func (*GotAnswerResponse) Type ¶
func (g *GotAnswerResponse) Type() string
type HTTPRequest ¶
type HTTPRequest struct { Method string `json:",omitempty"` RequestURI string `json:",omitempty"` Path string `json:",omitempty"` Query map[string][]string `json:",omitempty"` Protocol string `json:",omitempty"` Header map[string][]string `json:",omitempty"` Host string `json:",omitempty"` Trailer map[string][]string `json:",omitempty"` RemoteAddr string `json:",omitempty"` }
func HTTPRequestFromEvent ¶
func HTTPRequestFromEvent(r *events.HTTPRequest) *HTTPRequest
type HTTPResponse ¶
type HTTPResponse struct { StatusCode int `json:",omitempty"` Header map[string][]string `json:",omitempty"` }
func HTTPResponseFromEvent ¶
func HTTPResponseFromEvent(r *events.HTTPResponse) *HTTPResponse
type Handshake ¶
type Handshake struct { ID string VersionInfo VersionInfo Error string }
type Report ¶
type Report struct { Success *ClientSession `json:",omitempty"` Attempts []*ClientSession `json:",omitempty"` }
type ServerArrivalRequest ¶
type ServerArrivalRequest struct { BasicAuth *BasicAuth URL *SessionURLRequest Redirect string RedirectOnly bool IsUsingPortMapping bool TTL time.Duration Hostname string Cmd string PreviouslyAssignedURL string }
sent from the oneshot server to the signalling server after VersionInfo has been exchanged
func (*ServerArrivalRequest) Type ¶
func (a *ServerArrivalRequest) Type() string
type ServerArrivalResponse ¶
sent from the signalling server to the oneshot server when it first connects in response to an ArrivalRequest
func (*ServerArrivalResponse) Type ¶
func (a *ServerArrivalResponse) Type() string
type SessionURLRequest ¶
type UpdatePingRateRequest ¶
func (*UpdatePingRateRequest) Type ¶
func (u *UpdatePingRateRequest) Type() string