api

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0, MIT Imports: 34 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 {
	Ctx        context.Context
	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(params APIParams) (Server, error)

func (Server) Run

func (s Server) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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