peeragents

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeAgent

func NormalizeAgent(agent string) string

NormalizeAgent attempts to normalize an agent string to a software name and major/minor version

Types

type API

type API interface {
	ID(ctx context.Context) (peer.ID, error)
	NetPeers(context.Context) ([]peer.AddrInfo, error)
	NetAgentVersion(context.Context, peer.ID) (string, error)
}

type Task

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

func NewTask

func NewTask(api API) *Task

func (*Task) Close

func (t *Task) Close() error

func (*Task) Process

func (t *Task) Process(ctx context.Context) (model.Persistable, error)

Jump to

Keyboard shortcuts

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