service

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogOutput = true

LogOutput ...

Functions

func JSON

func JSON(c *gin.Context, v interface{}, e error)

JSON ...

Types

type APIContext

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

APIContext ...

func NewAPIContext

func NewAPIContext(cfg *config.Config, m core.NodeManager, c *controller.Controller) *APIContext

NewAPIContext ...

func (*APIContext) API

func (c *APIContext) API() core.API

API ...

func (*APIContext) Add

func (c *APIContext) Add(ctx context.Context, req *core.AddReq) (*core.AddResp, error)

Add ...

func (*APIContext) DataStoreAPI

func (c *APIContext) DataStoreAPI() core.DataStoreAPI

DataStoreAPI ...

func (*APIContext) ID

func (c *APIContext) ID(ctx context.Context, req *core.IDReq) (*core.IDResp, error)

ID ...

func (*APIContext) Initialize

func (c *APIContext) Initialize() error

Initialize ...

func (*APIContext) IsReady

func (c *APIContext) IsReady() bool

IsReady ...

Link ...

func (*APIContext) List

List ...

func (*APIContext) MessageHandle

func (c *APIContext) MessageHandle(f func(s string))

MessageHandle ...

func (*APIContext) NodeAPI

func (c *APIContext) NodeAPI() core.NodeAPI

NodeAPI ...

func (*APIContext) NodeAddrInfo

func (c *APIContext) NodeAddrInfo(ctx context.Context, req *core.AddrReq) (*core.AddrResp, error)

NodeAddrInfo ...

func (*APIContext) PinLs

PinLs ...

func (*APIContext) Ping

func (c *APIContext) Ping(ctx context.Context, req *core.PingReq) (*core.PingResp, error)

Ping ...

func (*APIContext) Start

func (c *APIContext) Start() error

Start ...

func (*APIContext) Stop

func (c *APIContext) Stop() error

Stop ...

Unlink ...

type BustLinker

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

BustLinker ...

func NewBustLinker

func NewBustLinker(cfg *config.Config) (linker *BustLinker, err error)

NewBustLinker ...

func (*BustLinker) Run

func (l *BustLinker) Run()

Run ...

func (*BustLinker) Start

func (l *BustLinker) Start()

Start ...

func (*BustLinker) Stop

func (l *BustLinker) Stop()

Stop ...

func (*BustLinker) WaitingForReady

func (l *BustLinker) WaitingForReady()

WaitingForReady ...

Jump to

Keyboard shortcuts

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