aggregator

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServerError    = NewError(-32000, "server error")
	ErrInvalidRequest = NewError(-32600, "invalid request")
	ErrInvalidMethod  = NewError(-32601, "invalid method")
	ErrInvalidChain   = NewError(-32601, "invalid chain")
	ErrMustReturn     = NewError(10000, "must return")
	ErrDenyRequest    = NewError(-32602, "deny request")
)
View Source
var (
	KeyDbConfig = []byte("config")

	KeyDbDeniedReceiver = []byte("denied-receiver")
)

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    int
	Message string
}

func NewError

func NewError(code int, msg string) *Error

func (*Error) Error

func (err *Error) Error() string

type Node

type Node struct {
	Name     string `json:"name"`
	Endpoint string `json:"endpoint"`
	Weight   int64  `json:"weight"`
	ReadOnly bool   `json:"read_only"`
	Disabled bool   `json:"disabled"`
}

func (*Node) Host

func (node *Node) Host() string

Jump to

Keyboard shortcuts

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