Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthControl ¶
type AuthControl struct {
Token string `msg:"token"`
}
AuthControl is sent by the client to create and authenticate a new session
func (*AuthControl) DecodeMsg ¶ added in v0.6.0
func (z *AuthControl) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (AuthControl) EncodeMsg ¶ added in v0.6.0
func (z AuthControl) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (AuthControl) MarshalMsg ¶ added in v0.6.0
func (z AuthControl) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (AuthControl) Msgsize ¶ added in v0.6.0
func (z AuthControl) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*AuthControl) UnmarshalMsg ¶ added in v0.6.0
func (z *AuthControl) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type AuthTunnel ¶
AuthTunnel is sent by the client to create and authenticate a tunnel connection
func (*AuthTunnel) DecodeMsg ¶ added in v0.6.0
func (z *AuthTunnel) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (AuthTunnel) EncodeMsg ¶ added in v0.6.0
func (z AuthTunnel) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (AuthTunnel) MarshalMsg ¶ added in v0.6.0
func (z AuthTunnel) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (AuthTunnel) Msgsize ¶ added in v0.6.0
func (z AuthTunnel) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*AuthTunnel) UnmarshalMsg ¶ added in v0.6.0
func (z *AuthTunnel) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type Envelope ¶
type Envelope struct { Type MessageType `msg:"type"` Payload msgp.Raw `msg:"payload"` }
Envelope is a wrapper struct used to encode message types as they are serialized to JSON
func (*Envelope) MarshalMsg ¶ added in v0.6.0
MarshalMsg implements msgp.Marshaler
type MessageType ¶ added in v0.6.0
type MessageType int
MessageType is an encoding for the underlying payload
const ( MsgUnsupported MessageType = iota MsgAuthControl MsgAuthTunnel MsgOpenTunnel MsgPing MsgPong MsgShutdown MsgRelease )
definitions of message types
func (*MessageType) DecodeMsg ¶ added in v0.6.0
func (z *MessageType) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (MessageType) EncodeMsg ¶ added in v0.6.0
func (z MessageType) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (MessageType) MarshalMsg ¶ added in v0.6.0
func (z MessageType) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (MessageType) Msgsize ¶ added in v0.6.0
func (z MessageType) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*MessageType) UnmarshalMsg ¶ added in v0.6.0
func (z *MessageType) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type OpenTunnel ¶
type OpenTunnel struct {
ClientID string `msg:"client_id"`
}
OpenTunnel is sent by server to the client to request a new Tunnel connection
func (*OpenTunnel) DecodeMsg ¶ added in v0.6.0
func (z *OpenTunnel) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (OpenTunnel) EncodeMsg ¶ added in v0.6.0
func (z OpenTunnel) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (OpenTunnel) MarshalMsg ¶ added in v0.6.0
func (z OpenTunnel) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (OpenTunnel) Msgsize ¶ added in v0.6.0
func (z OpenTunnel) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*OpenTunnel) UnmarshalMsg ¶ added in v0.6.0
func (z *OpenTunnel) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type Ping ¶
type Ping struct{}
Ping is sent to request a Pong response and check the liveness of the connection
func (Ping) MarshalMsg ¶ added in v0.6.0
MarshalMsg implements msgp.Marshaler
type Pong ¶
type Pong struct{}
Pong is a response ot the Ping message
func (Pong) MarshalMsg ¶ added in v0.6.0
MarshalMsg implements msgp.Marshaler
type Release ¶
type Release struct { ID string `msg:"id" redis:"id,omitempty"` Branch string `msg:"branch" redis:"branch,omitempty"` Description string `msg:"description" redis:"description,omitempty"` VCSType string `msg:"vcs_type" redis:"vcs_type,omitempty"` VCSRevision string `msg:"vcs_revision" redis:"vcs_revision,omitempty"` VCSRevisionMessage string `msg:"vcs_revision_message" redis:"vcs_revision_message,omitempty"` VCSRevisionTime time.Time `msg:"vcs_revision_time" redis:"vcs_revision_time,omitempty"` VCSRevisionAuthorName string `msg:"vcs_revision_author_name" redis:"vcs_revision_author_name,omitempty"` VCSRevisionAuthorEmail string `msg:"vcs_revision_author_email" redis:"vcs_revision_author_email,omitempty"` }
Release contains basic VCS (e.g. git) information about the running version of client server
func (*Release) MarshalMsg ¶ added in v0.6.0
MarshalMsg implements msgp.Marshaler
type Shutdown ¶
type Shutdown struct {
Error string `msg:"error"`
}
Shutdown is sent either by server or client to indicate that the session should be torn down
func (Shutdown) MarshalMsg ¶ added in v0.6.0
MarshalMsg implements msgp.Marshaler