dbi

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Close() error
	Register(p peer.ID, ns string, addrs [][]byte, ttl int) (uint64, error)
	Unregister(p peer.ID, ns string) error
	CountRegistrations(p peer.ID) (int, error)
	Discover(ns string, cookie []byte, limit int) ([]RegistrationRecord, []byte, error)
	ValidCookie(ns string, cookie []byte) bool
}

type RegistrationRecord

type RegistrationRecord struct {
	Id    peer.ID
	Addrs [][]byte
	Ns    string
	Ttl   int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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