Documentation ¶
Index ¶
- Variables
- func JSON(c *gin.Context, v interface{}, e error)
- type APIContext
- func (c *APIContext) API() core.API
- func (c *APIContext) Add(ctx context.Context, req *core.AddReq) (*core.AddResp, error)
- func (c *APIContext) DataStoreAPI() core.DataStoreAPI
- func (c *APIContext) ID(ctx context.Context, req *core.IDReq) (*core.IDResp, error)
- func (c *APIContext) Initialize() error
- func (c *APIContext) IsReady() bool
- func (c *APIContext) Link(ctx context.Context, req *core.NodeLinkReq) (*core.NodeLinkResp, error)
- func (c *APIContext) List(ctx context.Context, req *core.NodeListReq) (*core.NodeListResp, error)
- func (c *APIContext) MessageHandle(f func(s string))
- func (c *APIContext) NodeAPI() core.NodeAPI
- func (c *APIContext) NodeAddrInfo(ctx context.Context, req *core.AddrReq) (*core.AddrResp, error)
- func (c *APIContext) PinLs(ctx context.Context, req *core.DataStoreReq) (*core.DataStoreResp, error)
- func (c *APIContext) Ping(ctx context.Context, req *core.PingReq) (*core.PingResp, error)
- func (c *APIContext) Start() error
- func (c *APIContext) Stop() error
- func (c *APIContext) Unlink(ctx context.Context, req *core.NodeUnlinkReq) (*core.NodeUnlinkResp, error)
- type BustLinker
Constants ¶
This section is empty.
Variables ¶
View Source
var LogOutput = true
LogOutput ...
Functions ¶
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) DataStoreAPI ¶
func (c *APIContext) DataStoreAPI() core.DataStoreAPI
DataStoreAPI ...
func (*APIContext) Link ¶
func (c *APIContext) Link(ctx context.Context, req *core.NodeLinkReq) (*core.NodeLinkResp, error)
Link ...
func (*APIContext) List ¶
func (c *APIContext) List(ctx context.Context, req *core.NodeListReq) (*core.NodeListResp, error)
List ...
func (*APIContext) MessageHandle ¶
func (c *APIContext) MessageHandle(f func(s string))
MessageHandle ...
func (*APIContext) NodeAddrInfo ¶
NodeAddrInfo ...
func (*APIContext) PinLs ¶
func (c *APIContext) PinLs(ctx context.Context, req *core.DataStoreReq) (*core.DataStoreResp, error)
PinLs ...
func (*APIContext) Unlink ¶
func (c *APIContext) Unlink(ctx context.Context, req *core.NodeUnlinkReq) (*core.NodeUnlinkResp, error)
Unlink ...
type BustLinker ¶
type BustLinker struct {
// contains filtered or unexported fields
}
BustLinker ...
func NewBustLinker ¶
func NewBustLinker(cfg *config.Config) (linker *BustLinker, err error)
NewBustLinker ...
Click to show internal directories.
Click to hide internal directories.