externalnode

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-3.0 Imports: 10 Imported by: 1

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   map[string]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