nodes

package
v0.0.0-...-8291241 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LocalObjectdb []string
View Source
var LocalObjectdbMu sync.RWMutex
View Source
var LocalRedis []string
View Source
var LocalRedisMu sync.RWMutex
View Source
var LocalTVS []net.IP
View Source
var LocalTVSMu sync.RWMutex
View Source
var Regions []string
View Source
var RegionsMu sync.RWMutex

Functions

func Dial

func Dial(ip net.IP) (*yamux.Session, error)

func GenerateToasterAppsSubDomains

func GenerateToasterAppsSubDomains(radix string) []string

func GetAllLocalObjectdbNodes

func GetAllLocalObjectdbNodes() []string

func GetAllLocalRedisNodes

func GetAllLocalRedisNodes() []string

func GetConn

func GetConn(ip net.IP) (net.Conn, error)

GetConn add.pool must not be nil

func GetToasterLocalRegionAppSubdomain

func GetToasterLocalRegionAppSubdomain(radix, localregion string) string

func Init

func Init() error

func PickTVS

func PickTVS() (t net.IP)

func PutConn

func PutConn(ip net.IP, conn net.Conn)

Types

type NodeServer

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

func StartNodeServer

func StartNodeServer(listenToIP net.IP, handler func(net.Conn)) (*NodeServer, error)

TODO: generalize StartNodeServer to start a server for each node that shares runner comm and discovery auth and registration in addition of dns discovery

func (*NodeServer) Stop

func (ns *NodeServer) Stop() error

Jump to

Keyboard shortcuts

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