router

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SingleLbrynetServer

func SingleLbrynetServer(address string) map[string]string

Types

type LbrynetServer

type LbrynetServer struct {
	Name    string
	Address string
}

LbrynetServer represents the Name and Address of an LbrynetServer server location

type SDKRouter

type SDKRouter struct {
	LbrynetServers map[string]string
	// contains filtered or unexported fields
}

func New

func New(lbrynetServers map[string]string) SDKRouter

func NewDefault

func NewDefault() SDKRouter

func (*SDKRouter) GetBalancedSDK

func (r *SDKRouter) GetBalancedSDK() models.LbrynetServer

func (*SDKRouter) GetBalancedSDKAddress

func (r *SDKRouter) GetBalancedSDKAddress() string

func (*SDKRouter) GetSDKServer

func (r *SDKRouter) GetSDKServer(walletID string) models.LbrynetServer

func (*SDKRouter) GetSDKServerAddress

func (r *SDKRouter) GetSDKServerAddress(walletID string) string

func (*SDKRouter) GetSDKServerList

func (r *SDKRouter) GetSDKServerList() []models.LbrynetServer

Jump to

Keyboard shortcuts

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