handlers

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllPeersAndTopicsJSON

type AllPeersAndTopicsJSON struct {
	AllPeers     []peer.ID        `json:"all_peers"`
	PeersByTopic []topicIndexJSON `json:"peers_by_topic"`
}

type Node

type Node struct {
	ListenAddresses []string
	PeersIndex      networkpeers.Index
	TopicIndex      TopicIndex
	Network         network.Network
	NodeProber      *nodeprobe.Prober
}

func (*Node) Health added in v1.2.2

func (h *Node) Health(w http.ResponseWriter, r *http.Request) error

func (*Node) Identity

func (h *Node) Identity(w http.ResponseWriter, r *http.Request) error

func (*Node) Peers

func (h *Node) Peers(w http.ResponseWriter, r *http.Request) error

func (*Node) Topics

func (h *Node) Topics(w http.ResponseWriter, r *http.Request) error

type TopicIndex

type TopicIndex interface {
	PeersByTopic() ([]peer.ID, map[string][]peer.ID)
}

type Validators

type Validators struct {
	Shares registrystorage.Shares
}

func (*Validators) List

Jump to

Keyboard shortcuts

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