wasm

package
v0.0.0-...-f162aa9 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

//go:build components_wasm || components_all

Index

Constants

View Source
const (
	Scheme           = "wasm"
	PropertiesPrefix = "camel.component." + Scheme
)

Variables

This section is empty.

Functions

func NewComponent

func NewComponent(ctx api.Context, _ map[string]interface{}) (api.Component, error)

Types

type Component

type Component struct {
	components.DefaultComponent
}

func (*Component) Endpoint

func (c *Component) Endpoint(config api.Parameters) (api.Endpoint, error)

type Config

type Config struct {
	Remaining string `mapstructure:"remaining"`
	Image     string `mapstructure:"image,omitempty"`

	Other map[string]string `mapstructure:",remain"`
}

type Endpoint

type Endpoint struct {
	components.DefaultEndpoint
	// contains filtered or unexported fields
}

func (*Endpoint) Consumer

func (e *Endpoint) Consumer(_ *actor.PID) (api.Consumer, error)

func (*Endpoint) Producer

func (e *Endpoint) Producer() (api.Producer, error)

func (*Endpoint) Start

func (e *Endpoint) Start(context.Context) error

func (*Endpoint) Stop

func (e *Endpoint) Stop(context.Context) error

Jump to

Keyboard shortcuts

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