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: 76 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_IPFS_PIN_LIMIT = 10 // https://github.com/ipfs/pinning-services-api-spec/blob/main/ipfs-pinning-service.yaml#L610
	IPFS_PIN_LIMIT_MIN     = 1
	IPFS_PIN_LIMIT_MAX     = 1000
)
View Source
const (
	ColDir string = "dir"
)
View Source
const TOKEN_LABEL_ON_LOGIN = "on-login"
View Source
const TOKEN_LABEL_ON_REGISTER = "on-register"

Variables

This section is empty.

Functions

func NewAPIV1

func NewAPIV1(
	cfg *config.Estuary,
	db *gorm.DB,
	nd *node.Node,
	fc *filclient.FilClient,
	gwApi api.Gateway,
	sbm *stagingbs.StagingBSMgr,
	cm content.IManager,
	cacher *explru.ExpirableLRU,
	extendedCacher *explru.ExpirableLRU,
	mm miner.IMinerManager,
	pinMgr pinner.IEstuaryPinManager,
	log *zap.SugaredLogger,
	trc trace.Tracer,
	shuttleMgr shuttle.IManager,
	transferMgr transfer.IManager,
	dealMgr deal.IManager,
	stgZoneMgr stagingzone.IManager,
) *apiV1

Types

type ChannelIDParam

type ChannelIDParam struct {
	Initiator string
	Responder string
	ID        uint64
}

from datatransfer.ChannelID and used for swagger docs if we don't redefine this here, we'll need to enable parse dependences for swagger and it will take a really long time

type CidType

type CidType string

type DataExport

type DataExport struct {
	Version string
	Date    time.Time

	Version1 ExportVersion1
}

type ExportVersion1

type ExportVersion1 struct {
	Contents []util.Content
	Deals    []model.ContentDeal
}

Jump to

Keyboard shortcuts

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