tincwebmajordomo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	Name    string          `json:"name"`
	Running bool            `json:"running"`
	Config  *network.Config `json:"config,omitempty"` // only for specific request
}

type PeerInfo

type PeerInfo struct {
	Name          string       `json:"name"`
	Online        bool         `json:"online"`
	Configuration network.Node `json:"config"`
}

type Sharing

type Sharing struct {
	Name   string          `json:"name"`
	Subnet string          `json:"subnet"`
	Nodes  []*network.Node `json:"node,omitempty"`
}

type TincWebMajordomoClient

type TincWebMajordomoClient struct {
	BaseURL string
	// contains filtered or unexported fields
}

func Default

func Default() *TincWebMajordomoClient

func (*TincWebMajordomoClient) Join

func (impl *TincWebMajordomoClient) Join(ctx context.Context, network string, self *network.Node) (reply *Sharing, err error)

Join public network if code matched. Will generate error if node subnet not matched

Jump to

Keyboard shortcuts

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