callback

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New() *Callback

func (*Callback) Cancel

func (c *Callback) Cancel(id int)

func (*Callback) On

func (c *Callback) On(method string, f handlerFunc) int

func (*Callback) Run

func (c *Callback) Run(resp *Response)

type Response

type Response struct {
	Body *ethrpc.JsonrpcMessage
	IP   string
}

Jump to

Keyboard shortcuts

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