exporter

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.2.3

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

func NewClient added in v0.2.3

func NewClient(peermapURL, secretKey string) (*Client, error)

func (*Client) NetworkMeta added in v0.5.5

func (c *Client) NetworkMeta(network string) (*NetworkMeta, error)

func (*Client) Networks added in v0.2.3

func (c *Client) Networks() ([]NetworkHead, error)

func (*Client) Peers added in v0.2.3

func (c *Client) Peers() ([]Network, error)

func (*Client) PutNetworkMeta added in v0.5.5

func (c *Client) PutNetworkMeta(network string, request NetworkMeta) error

type Network

type Network struct {
	ID    string   `json:"n"`
	Alias string   `json:"n1"`
	Peers []string `json:"p"`
}

type NetworkHead

type NetworkHead struct {
	ID         string `json:"n"`
	Alias      string `json:"n1"`
	PeersCount int    `json:"c"`
	CreateTime string `json:"t"`
}

type NetworkMeta added in v0.5.5

type NetworkMeta struct {
	Alias     string   `json:"alias"`
	Neighbors []string `json:"neighbors"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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