socket

package
v0.0.0-...-8513d1b Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Type    string   `json:"type"`
	Topic   string   `json:"topic"`
	Symbols []string `json:"symbols"`
}

type MessageSpreads

type MessageSpreads struct {
	Symbol  string                  `json:"symbol"`
	Spreads []orderbook.CrossSpread `json:"spreads"`
}

type Server

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

func NewServer

func NewServer(crossSpreadCh chan map[string][]orderbook.CrossSpread) *Server

func (*Server) Start

func (s *Server) Start() error

type WSConn

type WSConn struct {
	*websocket.Conn
	Topic   string
	Symbols []string
}

Jump to

Keyboard shortcuts

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