contacts

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 11 Imported by: 0

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