server

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 55 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WalletInitialFunds     big.Int
	IpfsAPIAddr            ma.Multiaddr
	LotusAddress           ma.Multiaddr
	LotusAuthToken         string
	LotusMasterAddr        string
	AutocreateMasterAddr   bool
	FFSUseMasterAddr       bool
	Devnet                 bool
	GatewayBasePath        string
	GrpcHostNetwork        string
	GrpcHostAddress        ma.Multiaddr
	GrpcServerOpts         []grpc.ServerOption
	GrpcWebProxyAddress    string
	RepoPath               string
	GatewayHostAddr        string
	MaxMindDBFolder        string
	MongoURI               string
	MongoDB                string
	MinerSelector          string
	MinerSelectorParams    string
	SchedMaxParallel       int
	DealWatchPollDuration  time.Duration
	FFSDealFinalityTimeout time.Duration
}

Config specifies server settings.

type Server

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

Server represents the configured lotus client and filecoin grpc server.

func NewServer

func NewServer(conf Config) (*Server, error)

NewServer starts and returns a new server with the given configuration.

func (*Server) Close

func (s *Server) Close()

Close shuts down the server.

Jump to

Keyboard shortcuts

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