extensionslib

package
v3.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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 added in v3.2.0

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