extensionslib

package
v4.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ArchiveExtension = "archive"

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveParserRule

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

type ExtensionInfo

type ExtensionInfo struct {
	ExtensionOverride    []string
	LatestBlock          uint64
	AdditionalExtensions []string
}

type ExtensionKey

type ExtensionKey struct {
	Extension      string
	ConnectionType string
	InternalPath   string
	Addon          string
}

type ExtensionParser

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

func NewExtensionParser

func NewExtensionParser(allowedExtensions map[string]struct{}, configuredExtensions map[ExtensionKey]*spectypes.Extension) ExtensionParser

func (*ExtensionParser) AllowedExtension

func (ep *ExtensionParser) AllowedExtension(extension string) bool

func (*ExtensionParser) ExtensionParsing

func (ep *ExtensionParser) ExtensionParsing(addon string, extensionsChainMessage ExtensionsChainMessage, latestBlock uint64)

func (*ExtensionParser) GetConfiguredExtensions

func (ep *ExtensionParser) GetConfiguredExtensions() map[ExtensionKey]*spectypes.Extension

func (*ExtensionParser) GetExtension

func (ep *ExtensionParser) GetExtension(extension ExtensionKey) *spectypes.Extension

func (*ExtensionParser) SetConfiguredExtensions

func (ep *ExtensionParser) SetConfiguredExtensions(configuredExtensions map[ExtensionKey]*spectypes.Extension)

type ExtensionParserRule

type ExtensionParserRule interface {
	// contains filtered or unexported methods
}

func NewExtensionParserRule

func NewExtensionParserRule(extension *spectypes.Extension) ExtensionParserRule

type ExtensionsChainMessage

type ExtensionsChainMessage interface {
	SetExtension(*spectypes.Extension)
	RequestedBlock() (latest int64, earliest int64)
}

Jump to

Keyboard shortcuts

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