plugin

package
v0.0.0-...-1c880c9 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package plugin provides typed helpers for composing Wago plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provide

func Provide[T any](reg *wago.Registry, key ServiceKey[T], value T) error

Types

type Ref

type Ref[T any] struct {
	// contains filtered or unexported fields
}

func Require

func Require[T any](reg *wago.Registry, key ServiceKey[T]) (*Ref[T], error)

func (*Ref[T]) Get

func (r *Ref[T]) Get() (T, error)

type ServiceKey

type ServiceKey[T any] struct {
	// contains filtered or unexported fields
}

func NewServiceKey

func NewServiceKey[T any](name string) ServiceKey[T]

func (ServiceKey[T]) Name

func (k ServiceKey[T]) Name() string

Jump to

Keyboard shortcuts

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