node

package
v0.0.0-...-e1789b5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package flubber Flubber API

This a a REST server for accessing the capabilities of a Flubber node.

	Schemes: http
	Host: localhost:4242
	BasePath: /
	Version: 0.0.1

	Consumes:
	- application/json

	Produces:
	- application/json
    - text/plain

swagger:meta

Index

Constants

This section is empty.

Variables

View Source
var CurrentConfig = Config{}
View Source
var CurrentConfigInitialized = false

Functions

func PanicIfNotInitialized

func PanicIfNotInitialized()

func Run

func Run(ctx context.Context, cancel context.CancelFunc) error

Types

type Config

type Config struct {
	Did             string
	IPFSPubKey      []byte
	IPFSPrivKey     []byte
	InfuraSecretKey string
	W3SSecretKey    string
	PinataApiKey    string
	PinataSecretKey string
	IPNSKeys        map[byte]byte
}

func LoadConfig

func LoadConfig() (Config, error)

type NodeRun

type NodeRun struct {
	Ctx  context.Context
	Ipfs ipfs.IPFSCore
}

Jump to

Keyboard shortcuts

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