rpc

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidArgumentCount = errors.New("invalid argument count")

Functions

This section is empty.

Types

type Func

type Func = func(params []string) ([]string, error)

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(opts *options.Opts) (*Handler, error)

func (*Handler) Handle

func (h *Handler) Handle(c *fiber.Ctx) error

type JSONRPC

type JSONRPC struct {
	Method string   `json:"method"`
	Params []string `json:"params"`
}

type JSONRPCResponse

type JSONRPCResponse struct {
	Success bool     `json:"success"`
	Data    []string `json:"data"`
}

Jump to

Keyboard shortcuts

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