OracleListener

package
v0.0.0-...-97f3c37 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Host = "127.0.0.1:8383/"

Functions

This section is empty.

Types

type OraclePool

type OraclePool struct {
	Connections map[string]*SafeConnection

	SubscribeChan   chan *Messages.SubscribeMsg
	UnsubscribeChan chan *Messages.UnsubscribeMsg
	Subscribers     map[int][]*Messages.SubscribeMsg
	// contains filtered or unexported fields
}

func NewOraclePool

func NewOraclePool() *OraclePool

func (*OraclePool) IsSubscribed

func (pool *OraclePool) IsSubscribed(id int) bool

func (*OraclePool) Subscribe

func (pool *OraclePool) Subscribe(msg *Messages.SubscribeMsg)

func (*OraclePool) Unsubscribe

func (pool *OraclePool) Unsubscribe(msg *Messages.UnsubscribeMsg)

type SafeConnection

type SafeConnection struct {
	Url   string
	Conn  *websocket.Conn
	Count int
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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