sn

package
v0.8.3-0...-0a3fdd4 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceNode

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

func NewServiceNode

func NewServiceNode(pubkey *btcec.PublicKey, config string) (*ServiceNode, error)

func (*ServiceNode) EXRCompatible

func (s *ServiceNode) EXRCompatible() bool

func (*ServiceNode) Endpoint

func (s *ServiceNode) Endpoint() string

func (*ServiceNode) EndpointPath

func (s *ServiceNode) EndpointPath(path string) string

func (*ServiceNode) HasService

func (s *ServiceNode) HasService(service string) bool

func (*ServiceNode) Pubkey

func (s *ServiceNode) Pubkey() *btcec.PublicKey

func (*ServiceNode) Services

func (s *ServiceNode) Services() map[string]bool

type ServiceNodeConfig

type ServiceNodeConfig struct {
	XRouterVersion int32                    `json:"xrouterversion,omitempty"`
	XBridgeVersion int32                    `json:"xbridgeversion,omitempty"`
	XRouter        ServiceNodeConfigXRouter `json:"xrouter,omitempty"`
	XBridge        []string                 `json:"xbridge,omitempty"`
}

type ServiceNodeConfigXRouter

type ServiceNodeConfigXRouter struct {
	Config  string            `json:"config,omitempty"`
	Plugins map[string]string `json:"plugins,omitempty"`
}

Jump to

Keyboard shortcuts

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