state

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerLogger

type BadgerLogger struct {
	*logging.Logger
}

BadgerLogger is a wrapper type to give our logger the expected interface

func NewBadgerLogger

func NewBadgerLogger() *BadgerLogger

func (*BadgerLogger) Warningf

func (b *BadgerLogger) Warningf(msg string, args ...any)

type State

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

func GetState

func GetState() *State

func (*State) GetCursor

func (s *State) GetCursor() (uint64, string, error)

func (*State) Load

func (s *State) Load() error

func (*State) LookupDomain

func (s *State) LookupDomain(domainName string) (map[string]string, error)

func (*State) LookupNameserverRecord added in v0.6.0

func (s *State) LookupNameserverRecord(
	recordName string,
) (map[string]string, error)

LookupNameserverRecord searches the domain nameserver entries for one matching the requested record

func (*State) UpdateCursor

func (s *State) UpdateCursor(slotNumber uint64, blockHash string) error

func (*State) UpdateDomain

func (s *State) UpdateDomain(
	domainName string,
	nameServers map[string]string,
) error

Jump to

Keyboard shortcuts

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