beast

package
v0.0.0-...-0a20bc2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReceiveFileHandler

func ReceiveFileHandler(req *filePL.Request_Receive, api coreiface.CoreAPI, stream network.Stream, ctx context.Context)

func ReceiveMetaHandler

func ReceiveMetaHandler(req *filePL.Request_Meta, api coreiface.CoreAPI, stream network.Stream, ctx context.Context)

func RequestHandler

func RequestHandler(ctx context.Context, api coreiface.CoreAPI, stream network.Stream)

func SendFileHandler

func SendFileHandler(req *filePL.Request_Send, api coreiface.CoreAPI, stream network.Stream, ctx context.Context)

Types

type BeastPlugin

type BeastPlugin struct {
}

func (*BeastPlugin) Close

func (*BeastPlugin) Close() error

func (*BeastPlugin) Init

func (*BeastPlugin) Init(env *plugin.Environment) error

Init initializes plugin, satisfying the plugin.Plugin interface. Put any initialization logic here.

func (*BeastPlugin) Name

func (*BeastPlugin) Name() string

Name returns the plugin's name, satisfying the plugin.Plugin interface.

func (*BeastPlugin) Start

func (*BeastPlugin) Start(core *core.IpfsNode) error

func (*BeastPlugin) Version

func (*BeastPlugin) Version() string

Version returns the plugin's version, satisfying the plugin.Plugin interface.

Jump to

Keyboard shortcuts

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