endpoint

package
v0.0.0-...-d8ac9bd Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointEntry

type EndpointEntry struct {
	Category string
	Id       string
	Name     string
	Endpoint string
	Method   string
	Protocol string
	LastCall time.Time
	NumCalls int64
}

EndpointEntry contains info exposed to the templates

func (EndpointEntry) Identical

func (a EndpointEntry) Identical(b EndpointEntry) bool

Identical returns true of both entries have the same Endpoint and Method

type EndpointManager

type EndpointManager struct {
	Rest *rest.Server `kernel:"inject"`
	// contains filtered or unexported fields
}

EndpointManager acts as a frontend to the Rest server and provides a common interface for both inbound feeds (using http or message brokers) as well as for svg and image sources.

func (*EndpointManager) PostInit

func (s *EndpointManager) PostInit() error

func (*EndpointManager) RegisterEndpoint

func (s *EndpointManager) RegisterEndpoint(category, pathName, id, name, method, protocol string, t task.Task) (task.Task, error)

RegisterEndpoint registers a new endpoint will be sent to a task. This doesn't do much other than count the number of times the task is run and show it on the status page. This is usually used for mqtt and amqp queues

func (*EndpointManager) RegisterHttpEndpoint

func (s *EndpointManager) RegisterHttpEndpoint(category, pathName, id, name, method, protocol string, t task.Task) error

RegisterHttpEndpoint registers a new endpoint with the system webserver which will be sent to a task.

type Endpoints

type Endpoints struct {
	Category  string
	Endpoints []EndpointEntry
}

Jump to

Keyboard shortcuts

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