api

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0, MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIV2

func NewAPIV2(
	cfg *config.Estuary,
	db *gorm.DB,
	nd *node.Node,
	fc *filclient.FilClient,
	gwApi api.Gateway,
	sbm *stagingbs.StagingBSMgr,
	cm content.IManager,
	cacher *explru.ExpirableLRU,
	minerManager miner.IMinerManager,
	extendedCacher *explru.ExpirableLRU,
	pinMgr pinner.IEstuaryPinManager,
	log *zap.SugaredLogger,
	trc trace.Tracer,
) *apiV2

Types

type BatchedPinRequest added in v0.3.9

type BatchedPinRequest struct {
	ContentIdToPin string `json:"content_id"`
}

type StorageProviderResp added in v0.4.1

type StorageProviderResp struct {
	Addr            address.Address       `json:"addr"`
	Name            string                `json:"name"`
	Suspended       bool                  `json:"suspended"`
	SuspendedReason string                `json:"suspendedReason,omitempty"`
	Version         string                `json:"version"`
	ChainInfo       *miner.MinerChainInfo `json:"chain_info"`
}

Jump to

Keyboard shortcuts

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