api

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0, MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(c *cli.Context) error

Types

type APIParams added in v0.3.0

type APIParams struct {
	Listener   net.Listener
	LotusAPI   string
	LotusToken string
	ConnString string
}

type HTTPError added in v0.3.0

type HTTPError struct {
	Err string `json:"err"`
}

type Server

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

func InitServer added in v0.3.0

func InitServer(ctx context.Context, params APIParams) (Server, error)

func (Server) Name added in v0.4.0

func (s Server) Name() string

func (Server) Start added in v0.4.0

func (s Server) Start(ctx context.Context) ([]service.Done, service.Fail, error)

Jump to

Keyboard shortcuts

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