plugin

package
v0.0.0-...-9be8bb9 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Plugins is an exported list of plugins that will be loaded by kubo

Functions

This section is empty.

Types

type CarMirrorPlugin

type CarMirrorPlugin struct {

	// Log level
	LogLevel string
	// HTTPCommandsAddr is the address CAR Mirror will listen on for local commands, which are application concerns.
	// Defaults to `127.0.0.1:2502`.
	HTTPCommandsAddr string
	// HTTPRemoteAddr is the address CAR Mirror will listen on for remote requests, which are protocol concerns.
	// Defaults to `:2503`.
	HTTPRemoteAddr       string
	MaxBlocksPerRound    uint32
	MaxBlocksPerColdCall uint32
	// contains filtered or unexported fields
}

CarMirrorPlugin is an exported struct IPFS will load & work with

func NewCarMirrorPlugin

func NewCarMirrorPlugin() *CarMirrorPlugin

NewCarMirrorPlugin creates a CarMirrorPlugin with some sensible defaults

func (*CarMirrorPlugin) Close

func (p *CarMirrorPlugin) Close() error

func (*CarMirrorPlugin) Init

func (p *CarMirrorPlugin) Init(env *plugin.Environment) error

func (*CarMirrorPlugin) Name

func (*CarMirrorPlugin) Name() string

func (*CarMirrorPlugin) Start

func (p *CarMirrorPlugin) Start(capi coreiface.CoreAPI) error

func (*CarMirrorPlugin) Version

func (*CarMirrorPlugin) Version() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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