Back to godoc.org

Package api

v0.0.0-...-cc96a5f
Latest Go to latest

The highest tagged major version is .

Published: Sep 4, 2020 | License: MIT | Module: github.com/SJTU-OpenNetwork/hon-textile

Index

type Api

type Api struct {
	Node     *core.Textile
	Bots     *bots.Service
	PinCode  string
	RepoPath string
	// contains filtered or unexported fields
}

Gateway is a HTTP API for getting files and links from IPFS

var Host *Api

Host is the instance used by the daemon

func (*Api) Addr

func (a *Api) Addr() string

Addr returns the api address

func (*Api) Run

func (a *Api) Run()

@securityDefinitions.basic BasicAuth @Security BasicAuth @BasePath /api/v0

func (*Api) Start

func (a *Api) Start(addr string, serveDocs bool)

Start starts the host instance

func (*Api) Stop

func (a *Api) Stop() error

Stop stops the http api

type SubsystemInfo

type SubsystemInfo map[string]string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier