Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDontHaveListeners occurs when len of the liteners is 0 in Serve() call ErrDontHaveListeners = errors.New("server don't have listeners") // ErrFailedMarshalRoutes occurse when marshaler of the routes and notifs list // ended with error in Serve method ErrFailedMarshalRoutes = errors.New("failed to marshal routes and notifs") // ErrServeWasStoped occurs when you closed all listener ErrServeWasStoped = errors.New("serve was stoped") // ErrFailedMarshalNotification occurs when marshaler of the notification type // ended with error in SendNotif ErrFailedMarshalNotification = errors.New("failed to marshal notification type") // ErrNotificationNotFound occurs when you try to send non exist notification ErrNotificationNotFound = errors.New("notification with this name not found") // ErrLenOfMessageTooLong occurs when len of the message is biggest then uint32 ErrLenOfMessageTooLong = errors.New("length of the message is too long (> 4294967295)") // ErrLenOfClientMessageTooLong occurs when client try to send message biggest then 100 MB ErrLenOfClientMessageTooLong = errors.New("length of the cleint message is too long (> 104857600)") // ErrLenOfStatusTooShort occurs when len of the data is too short to parse status code ErrLenOfStatusTooShort = errors.New("length of the data in status is too short (< 2)") // ErrLenOfTextTooShort occurs when len of the data is // less then coded number in data ErrLenOfTextTooShort = errors.New("length of the text in status is less then number") // ErrUnknownSecureType occurs when you try to use incorrect secure type ErrUnknownSecureType = errors.New("secure type must be 0, 1 or 2") // ErrClientIsClosed occurs when you try to use closed connection ErrClientIsClosed = errors.New("client closed connection") // ErrCleintDontHaveMethod occurs when client dont have the method // Maybe server don't have this method or client don't received list of the methods ErrCleintDontHaveMethod = errors.New("client don't have this method") // ErrServerSentEmptyBody occurs when server sends message with code but without body ErrServerSentEmptyBody = errors.New("server sent empty body") // ErrServerSentUnexpectedMsg occurs when server sends unexpected response // Any type except Ok or Error (1 or 2) ErrServerSentUnexpectedMsg = errors.New("server sent unexpected response type") // ErrTypeDoesNotProtoInterface occurs when you try to use type // that not implement proto.Message interface ErrTypeDoesNotProtoInterface = errors.New("type does not proto.Message interface") // ErrTypeDoesNotWSProtoInterface occurs when you try to use type // that not implement wsProto interface ErrTypeDoesNotWSProtoInterface = errors.New("type does not wsProto interface") // ErrTimeoutPendingResponse occurse when the server timed out waiting for a response ErrTimeoutPendingResponse = errors.New("the request timeout has been exceeded") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.