substrate

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service) error

func StorageMethod

func StorageMethod(method storageMethod) Option

Note: smartops run inside the storage method, so a new method must implement it's own smartOps calls

type Service

type Service struct {
	nodeIface.Service
	// contains filtered or unexported fields
}

func New

func New(srv nodeIface.Service, factory kvdb.Factory, options ...Option) (*Service, error)

func (*Service) Add

func (s *Service) Add(content io.Reader) (cid.Cid, error)

func (*Service) Cache

func (s *Service) Cache() components.Cache

func (*Service) CheckTns

func (*Service) Close

func (s *Service) Close() error

func (*Service) Get

func (*Service) GetFile

func (s *Service) GetFile(ctx context.Context, cid cid.Cid) (peer.ReadSeekCloser, error)

func (*Service) Storage

func (s *Service) Storage(context storageIface.Context) (storageIface.Storage, error)

Context Config will be generated by New()

func (*Service) Storages

func (s *Service) Storages() map[string]storageIface.Storage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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