market

package
v0.0.0-...-8444db5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName service.Name = "market"

Variables

This section is empty.

Functions

func ServiceProvider

func ServiceProvider(funcs ...OptionFunc) service.Provider

Types

type Option

type Option struct {
	IPFSGatewayURL string
	MarketURL      string
	RetryMax       int
	Timeout        time.Duration
	AppsDir        string
}

type OptionFunc

type OptionFunc func(*Option)

func WithAppsDir

func WithAppsDir(appsDir string) OptionFunc

func WithIPFSGatewayURL

func WithIPFSGatewayURL(ipfsGatewayURL string) OptionFunc

func WithMarketURL

func WithMarketURL(marketURL string) OptionFunc

func WithRetryMax

func WithRetryMax(retryMax int) OptionFunc

func WithTimeout

func WithTimeout(timeout time.Duration) OptionFunc

type Service

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

func From

func From(container *service.Container) (*Service, error)

From retrieves the market service in the given container.

func Must

func Must(container *service.Container) *Service

Must retrieves the market service in the given container or panic otherwise.

func (*Service) Client

func (s *Service) Client() *client.Client

func (*Service) Installer

func (s *Service) Installer() *installer.Installer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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