dbi

package
v0.0.0-...-a67d1cc Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 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, signedPeerRecord []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
	SignedPeerRecord []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