Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidProto = &Error{ReturnCode: 0x01, Status: 401, Message: "Unacceptable proto version. The proto version is invalid."} ErrInvalidClientID = &Error{ReturnCode: 0x02, Status: 401, Message: "Identifier rejected. The client ID is invalid or missing. Use a valid client Id or use an auto generated client ID in the connection request."} ErrClientIdForbidden = &Error{ReturnCode: 0x03, Status: 403, Message: "Unacceptable identifier, access not allowed use primary client Id to request a secondary client ID."} ErrServerError = &Error{ReturnCode: 0x05, Status: 500, Message: "An unexpected condition was encountered."} ErrBadToken = &Error{ReturnCode: 0x06, Status: 403, Message: "Authentication failed."} ErrForbidden = &Error{ReturnCode: 0x07, Status: 403, Message: "The request is understood, but it has been refused or access is not allowed."} ErrSessionExist = &Error{ReturnCode: 0x08, Status: 403, Message: "Another connection using the same session ID has an active connection causing this connection to be closed."} ErrUnknownEpoch = &Error{ReturnCode: 0x09, Status: 403, Message: "Unknown authentication epoch."} ErrTimteout = &Error{ReturnCode: 0x10, Status: 504, Message: "The network connection timeout."} ErrNotFound = &Error{ReturnCode: 0x11, Status: 404, Message: "The resource requested does not exist."} ErrBadRequest = &Error{ReturnCode: 0x12, Status: 400, Message: "The request was invalid or cannot be otherwise served."} ErrTargetTooLong = &Error{ReturnCode: 0x13, Status: 400, Message: "Topic can not have more than 23 parts."} ErrNotImplemented = &Error{ReturnCode: 0x14, Status: 501, Message: "The server does not recognize the request method."} )
Represents a set of errors used in the handlers.
Functions ¶
This section is empty.
Types ¶
type ClientIdResponse ¶
type Error ¶
type Error struct { ReturnCode uint8 Status int `json:"status"` Message string `json:"message"` ID int `json:"id,omitempty"` }
Error represents an event code which provides a more details.
type KeyGenRequest ¶
func (*KeyGenRequest) Access ¶
func (m *KeyGenRequest) Access() uint32
type KeyGenResponse ¶
Click to show internal directories.
Click to hide internal directories.