node

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: GPL-3.0 Imports: 10 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

node-go

Common node Golang library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStoredConfig

func GetStoredConfig(c echo.Context, proxeusUrl string) ([]byte, error)

func Health

func Health(c echo.Context) error

func NodeID

func NodeID(c echo.Context) (string, error)

func Nop

func Nop(_ echo.Context) error

func Register

func Register(proxeusUrl, name, serviceUrl, jwtSecret, description string, retryInterval int) error

func SetStoredConfig

func SetStoredConfig(c echo.Context, proxeusUrl string, conf interface{}) error

Types

type ExternalNode

type ExternalNode struct {
	ID     string `json:"id" storm:"id"`
	Name   string `json:"name"`
	Detail string `json:"detail"`
	Url    string `json:"url"`
	Secret string `json:"secret"`
}

func (*ExternalNode) HealthUrl

func (e *ExternalNode) HealthUrl() string

type ExternalNodeInstance

type ExternalNodeInstance struct {
	ID       string      `json:"id" storm:"id"`
	NodeName string      `json:"nodeName"`
	Config   interface{} `json:"nodeConfig"`
}

type ExternalQuery

type ExternalQuery struct {
	*ExternalNode
	*ExternalNodeInstance
}

func (ExternalQuery) CloseUrl

func (e ExternalQuery) CloseUrl() string

func (ExternalQuery) ConfigUrl

func (e ExternalQuery) ConfigUrl() string

func (ExternalQuery) NextUrl

func (e ExternalQuery) NextUrl() string

func (ExternalQuery) RemoveUrl

func (e ExternalQuery) RemoveUrl() string

Jump to

Keyboard shortcuts

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