websocket

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

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, req reader.Request) (reader.JSONResponse, 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