server

package
v0.0.0-...-be0f657 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 27 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 {
	LotusAddress    ma.Multiaddr
	LotusAuthToken  string
	GrpcHostNetwork string
	GrpcHostAddress string
	RepoPath        string
}

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