contacts

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ServiceName = "contacts.*"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	rpc.Conn
}

func (Client) Connect

func (c Client) Connect(identity id.Identity, port string) (client Client, err error)

func (Client) Contacts

func (c Client) Contacts() (<-chan []Contact, error)

type Contact

type Contact struct {
	Id    string
	Alias string
}
type Link struct {
	Id       int
	RemoteId string
	Remote   string
	Network  string
	Idle     time.Duration
	Since    time.Duration
	Latency  time.Duration
}

type Loader

type Loader struct{}

func (Loader) Load

func (Loader) Load(node modules.Node, _ assets.Assets, log *log.Logger) (modules.Module, error)

Jump to

Keyboard shortcuts

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