service

package
v0.0.0-...-269d6e4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTPListenAddr        string
	UploaderIPFSMultiaddr string
	BrokerAPIAddr         string
	AuthAddr              string
	SkipAuth              bool
	IpfsMultiaddrs        []multiaddr.Multiaddr
	PinataJWT             string
	MaxUploadSize         uint
	RelayMaddr            string
}

Config provides configuration parameters for a service.

type Service

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

Service provides an implementation of the Storage API.

func New

func New(config Config) (*Service, error)

New returns a new Service.

func (*Service) Close

func (s *Service) Close() error

Close gracefully closes the service.

Jump to

Keyboard shortcuts

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