extensionslib

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 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 {
	AllowedExtensions map[string]struct{}
	// contains filtered or unexported fields
}

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) 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