renter

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientTypeBus    ClientType = "bus"
	ClientTypeWorker ClientType = "worker"
	ClusterKey       string     = "/discovery/renterd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientManager added in v0.4.0

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

func NewClientManager added in v0.4.0

func NewClientManager(ctx core.Context) *ClientManager

func (*ClientManager) GetNextNode added in v0.4.0

func (cm *ClientManager) GetNextNode(clientType ClientType) (*NodeInfo, error)

func (*ClientManager) Start added in v0.4.0

func (cm *ClientManager) Start() error

type ClientType added in v0.4.0

type ClientType string

type NodeInfo added in v0.4.0

type NodeInfo struct {
	URL       string     `json:"url"`
	Type      ClientType `json:"type"`
	LastSeen  time.Time  `json:"last_seen"`
	Priority  int        `json:"priority"`
	IsHealthy bool       `json:"is_healthy"`
}

Jump to

Keyboard shortcuts

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