Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrorOfInterest ¶
Types ¶
type APIErrorResponse ¶
type MessageHandler ¶
MessageHandler is a function that processes a message received from a websocket connection.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func NewReader ¶
func NewReader(ctx context.Context, baseURL, pth, token string, handler MessageHandler) (*Reader, error)
NewReader creates a new websocket reader. The reader will pass on any message it receives to the handler function. The handler function should return an error if it fails to process the message.