nameservice

package
v0.0.0-...-c97bdb9 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package nameservice reads the zblock/accounts folder and creates a name service lookup for the ardan accounts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NameService

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

NameService maintains a map of accounts for name lookup.

func New

func New(root string) (*NameService, error)

New constructs an Ardan Name Service with accounts from the zblock/accounts folder.

func (*NameService) Copy

func (ns *NameService) Copy() map[database.AccountID]string

Copy returns a copy of the map of names and accounts.

func (*NameService) Lookup

func (ns *NameService) Lookup(accountID database.AccountID) string

Lookup returns the name for the specified account.

Jump to

Keyboard shortcuts

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