server

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const HTTPID = "http-trigger@1.0.0-alpha"

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPCapability

type HTTPCapability interface {
	RegisterTrigger(ctx context.Context, triggerID string, metadata capabilities.RequestMetadata, input *http.Config) (<-chan capabilities.TriggerAndId[*http.Payload], error)
	UnregisterTrigger(ctx context.Context, triggerID string, metadata capabilities.RequestMetadata, input *http.Config) error

	Start(ctx context.Context) error
	Close() error
	HealthReport() map[string]error
	Name() string
	Description() string
	Ready() error
	Initialise(ctx context.Context, config string, telemetryService core.TelemetryService, store core.KeyValueStore, errorLog core.ErrorLog, pipelineRunner core.PipelineRunnerService, relayerSet core.RelayerSet, oracleFactory core.OracleFactory, gatewayConnector core.GatewayConnector, p2pKeyValueStore core.Keystore) error
}

type HTTPServer

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

func NewHTTPServer

func NewHTTPServer(capability HTTPCapability) *HTTPServer

func (*HTTPServer) Close

func (cs *HTTPServer) Close() error

func (*HTTPServer) Execute

func (c *HTTPServer) Execute(ctx context.Context, request capabilities.CapabilityRequest) (capabilities.CapabilityResponse, error)

func (*HTTPServer) Info

func (c *HTTPServer) Info(ctx context.Context) (capabilities.CapabilityInfo, error)

func (*HTTPServer) Infos

func (*HTTPServer) Initialise

func (cs *HTTPServer) Initialise(ctx context.Context, config string, telemetryService core.TelemetryService, store core.KeyValueStore, capabilityRegistry core.CapabilitiesRegistry, errorLog core.ErrorLog, pipelineRunner core.PipelineRunnerService, relayerSet core.RelayerSet, oracleFactory core.OracleFactory, gatewayConnector core.GatewayConnector, p2pKeystore core.Keystore) error

func (*HTTPServer) RegisterToWorkflow

func (c *HTTPServer) RegisterToWorkflow(ctx context.Context, request capabilities.RegisterToWorkflowRequest) error

func (*HTTPServer) RegisterTrigger

func (c *HTTPServer) RegisterTrigger(ctx context.Context, request capabilities.TriggerRegistrationRequest) (<-chan capabilities.TriggerResponse, error)

func (*HTTPServer) UnregisterFromWorkflow

func (c *HTTPServer) UnregisterFromWorkflow(ctx context.Context, request capabilities.UnregisterFromWorkflowRequest) error

func (*HTTPServer) UnregisterTrigger

func (c *HTTPServer) UnregisterTrigger(ctx context.Context, request capabilities.TriggerRegistrationRequest) error

Jump to

Keyboard shortcuts

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