server

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 55 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Config

type Config struct {
	RepoPath        string
	MaxMindDBFolder string
	Devnet          bool
	IpfsAPIAddr     ma.Multiaddr

	LotusAddress           ma.Multiaddr
	LotusAuthToken         string
	LotusMasterAddr        string
	LotusConnectionRetries int

	GrpcHostNetwork     string
	GrpcHostAddress     ma.Multiaddr
	GrpcServerOpts      []grpc.ServerOption
	GrpcWebProxyAddress string

	GatewayBasePath      string
	GatewayHostAddr      string
	IndexRawJSONHostAddr string

	MongoURI string
	MongoDB  string

	FFSAdminToken                string
	FFSUseMasterAddr             bool
	FFSDealFinalityTimeout       time.Duration
	FFSMinimumPieceSize          uint64
	FFSRetrievalNextEventTimeout time.Duration
	FFSMaxParallelDealPreparing  int
	FFSGCAutomaticGCInterval     time.Duration
	FFSGCStageGracePeriod        time.Duration
	SchedMaxParallel             int
	MinerSelector                string
	MinerSelectorParams          string
	DealWatchPollDuration        time.Duration
	AutocreateMasterAddr         bool
	WalletInitialFunds           big.Int

	AskIndexQueryAskTimeout time.Duration
	AskindexMaxParallel     int
	AskIndexRefreshInterval time.Duration
	AskIndexRefreshOnStart  bool

	IndexMinersRefreshOnStart     bool
	IndexMinersOnChainMaxParallel int
	IndexMinersOnChainFrequency   time.Duration

	DisableIndices bool

	DisableNonCompliantAPIs bool
}

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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