websocket

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrErrorStateReceived = errors.New("error state received")

Functions

This section is empty.

Types

type CollectionCursorsResponse

type CollectionCursorsResponse struct {
	Before string `json:"before"`
	After  string `json:"after,omitempty"`
}

type CollectionResponse

type CollectionResponse[T any] struct {
	Items   []T                       `json:"items"`
	Cursors CollectionCursorsResponse `json:"cursors"`
}

type Message

type Message struct {
	// contains filtered or unexported fields
}

func NewMessage

func NewMessage(data []byte) (Message, error)

func (Message) Data

func (m Message) Data() []byte

func (Message) HasAuthErrMsg

func (m Message) HasAuthErrMsg() bool

func (Message) HasContinueState

func (m Message) HasContinueState() bool

func (Message) HasErrorState

func (m Message) HasErrorState() bool

func (Message) ID

func (m Message) ID() uint

func (Message) State

func (m Message) State() string

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(authService console.AuthServiceInterface, writer writer.Interface, logger *log.Logger) (*Reader, error)

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Read

func (r *Reader) Read(dataType string, dataMap map[string]any) (portfolio.OutputDataInterface, error)

type ResponseError

type ResponseError struct {
	ErrorCode    string `json:"errorCode"`
	ErrorMessage string `json:"errorMessage"`
}

type ResponseErrors

type ResponseErrors struct {
	Errors []ResponseError `json:"errors"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL