Documentation
¶
Index ¶
Constants ¶
View Source
const ( Data = 0 ClientSessionRequest = 1 ClientSessionRequestWithAuth = 0b10000001 ServerSessionAck = 2 Close = 3 ErrorClientID = 4 ErrorSessionID = 5 Authentication = 6 AuthenticationAck = 7 )
View Source
const AuthenticationEndpoint = 0xFFFF
AuthenticationEndpoint is a phantom endpoint that's used to signify an authentication message
Variables ¶
This section is empty.
Functions ¶
func CreateErrorClient ¶
Types ¶
type AuthenticationAckFrame ¶
type AuthenticationAckFrame struct {
TokenHash [32]byte
}
func NewAuthenticationAck ¶
func NewAuthenticationAck(token string) AuthenticationAckFrame
func (*AuthenticationAckFrame) Encode ¶
func (frame *AuthenticationAckFrame) Encode() *[]byte
type MessageFrame ¶
func (*MessageFrame) Close ¶
func (frame *MessageFrame) Close() []byte
func (MessageFrame) Encode ¶
func (frame MessageFrame) Encode() []byte
Click to show internal directories.
Click to hide internal directories.