proxy

package
v0.0.0-...-838934d Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Currency

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

Currency : Handles logging and RPC details. Implements the ServicePlugin interface

func New

func New(cfg *config.Config) (*Currency, error)

New : Returns a pointer to a newly instantiated Currency struct

func (*Currency) GetParameters

func (k *Currency) GetParameters() map[string]string

GetParameters : Returns params from Currency struct

func (*Currency) Halt

func (k *Currency) Halt()

Halt : Stops the plugin

func (*Currency) OnRequest

func (k *Currency) OnRequest(id uint64, payload []byte, hasSURB bool) ([]byte, error)

OnRequest : Request Handler

type RPCError

type RPCError struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type RPCResponse

type RPCResponse struct {
	Version string          `json:"jsonrpc,omitempty"`
	ID      json.RawMessage `json:"id,omitempty"`
	Error   *RPCError       `json:"error,omitempty"`
	Result  string          `json:"result,omitempty"`
}

Jump to

Keyboard shortcuts

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