ws

package
v0.0.0-...-9b0c1e2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w rest.ResponseWriter, r *rest.Request)

func PushAccount

func PushAccount(account *types.Account, userIds []string, action string)

func PushPrice

func PushPrice(price *types.Price, userIds []string, action string)

func PushTransaction

func PushTransaction(transaction *types.Transaction, userIds []string, action string)

Types

type Message

type Message struct {
	Version        string      `json:"version"`
	SequenceNumber int         `json:"sequenceNumber"`
	Type           string      `json:"type"`
	Action         string      `json:"action"`
	Data           interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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