service

package
v0.0.0-...-782863c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	AddTransaction([]byte) error
	AddTransactions([][]byte) error
}

func New

func New(node *node.Server) Service

type WSService

type WSService interface {
	Websocket(string, WriteMessageCloser) (int, error)
	Callback(nodeID uint64, tx []byte)
}

func NewWS

func NewWS(ctx context.Context, pbService pubsub.Server) WSService

type WriteMessageCloser

type WriteMessageCloser interface {
	io.Closer
	WriteMessage(int, []byte) error
}

Jump to

Keyboard shortcuts

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