state

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 12 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{}

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

func NewBadgerLogger

func NewBadgerLogger() *BadgerLogger

func (*BadgerLogger) Debugf added in v0.15.0

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

func (*BadgerLogger) Errorf added in v0.15.0

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

func (*BadgerLogger) Infof added in v0.15.0

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

func (*BadgerLogger) Warningf

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

type DiscoveredAddress added in v0.18.0

type DiscoveredAddress struct {
	Address  string
	TldName  string
	PolicyId string
}

type DomainRecord added in v0.13.0

type DomainRecord struct {
	Lhs  string
	Type string
	Ttl  int
	Rhs  string
}

type State

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

func GetState

func GetState() *State

func (*State) AddDiscoveredAddress added in v0.18.0

func (s *State) AddDiscoveredAddress(addr DiscoveredAddress) error

func (*State) GetCursor

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

func (*State) GetDiscoveredAddresses added in v0.18.0

func (s *State) GetDiscoveredAddresses() ([]DiscoveredAddress, error)

func (*State) Load

func (s *State) Load() error

func (*State) LookupRecords added in v0.13.0

func (s *State) LookupRecords(
	recordTypes []string,
	recordName string,
) ([]DomainRecord, error)

func (*State) UpdateCursor

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

func (*State) UpdateDomain

func (s *State) UpdateDomain(
	domainName string,
	records []DomainRecord,
) error

Jump to

Keyboard shortcuts

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