OracleConnection

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: 5 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 BroadcastMsg

type BroadcastMsg struct {
	Key       string `json:"key"`
	Value     string `json:"value"`
	Type      string `json:"type"`
	Timestamp string `json:"timestamp"`
	Index     int
	Error     error
}

type OraclePool

type OraclePool struct {
	Connections map[string]*SafeConnection

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

func NewOraclePool

func NewOraclePool() *OraclePool

type ResponseMsg

type ResponseMsg struct {
	Key       string `json:"key"`
	Value     string `json:"value"`
	Timestamp string `json:"timestamp"`
}

type SafeConnection

type SafeConnection struct {
	Url string

	Count int
	// contains filtered or unexported fields
}

type SubscribeMsg

type SubscribeMsg struct {
	VM            int
	Url           string
	OracleKey     string
	Index         int
	BroadcastChan chan *BroadcastMsg
}

type UnsubscribeMsg

type UnsubscribeMsg struct {
	VM int
}

Jump to

Keyboard shortcuts

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