showbridge

package module
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 15 Imported by: 0

README

showbridge (go edition)

Coverage Simple protocol router /s

Releases · Documentation

Supported Protocols
CLI Usage
NAME:
   showbridge - Simple protocol router /s

USAGE:
   showbridge [global options]

GLOBAL OPTIONS:
   --config string      path to config file (default: "./config.yaml") [$SHOWBRIDGE_CONFIG]
   --log-level string   set log level (default: "info") [$SHOWBRIDGE_LOG_LEVEL]
   --log-format string  log format to use (default: "text") [$SHOWBRIDGE_LOG_FORMAT]
   --trace              enable OpenTelemetry tracing [$SHOWBRIDGE_TRACE]
   --help, -h           show help
   --version, -v        print the version

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	Context context.Context
	// TODO(jwetzell): do these need to be guarded against concurrency?
	ModuleInstances map[string]common.Module
	// TODO(jwetzell): change to something easier to lookup
	RouteInstances []*route.Route
	ConfigChange   chan config.Config
	// contains filtered or unexported fields
}

TODO(jwetzell): can/should this be split into different "components"?

func NewRouter

func NewRouter(routerConfig config.Config) (*Router, []config.ModuleError, []config.RouteError)

func (*Router) AddEventDestination added in v0.19.2

func (r *Router) AddEventDestination(dest common.EventDestination)

func (*Router) GetRunningConfig added in v0.19.2

func (r *Router) GetRunningConfig() config.Config

func (*Router) HandleEvent added in v0.19.2

func (r *Router) HandleEvent(event common.Event, sender common.EventDestination)

func (*Router) HandleInput

func (r *Router) HandleInput(ctx context.Context, sourceId string, payload any) (bool, []common.RouteIOError)

func (*Router) HandleOutput

func (r *Router) HandleOutput(ctx context.Context, destinationId string, payload any) error

func (*Router) RemoveEventDestination added in v0.19.2

func (r *Router) RemoveEventDestination(dest common.EventDestination)

func (*Router) Start added in v0.13.0

func (r *Router) Start(ctx context.Context)

func (*Router) Stop

func (r *Router) Stop()

func (*Router) UpdateConfig added in v0.16.0

func (r *Router) UpdateConfig(newConfig config.Config, triggerChangeChan bool) (error, []config.ModuleError, []config.RouteError)

Directories

Path Synopsis
cmd
showbridge command
internal
api

Jump to

Keyboard shortcuts

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