controller

package
v5.0.0-alpha00 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

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

type Controller

type Controller[T any] interface {
	Register(scheme string, options ...Option[T])
	Open(ctx context.Context, url string) (T, error)
}

func NewController

func NewController[T any]() Controller[T]

type Convertible

type Convertible interface {
	As(out any) bool
}

type Opener

type Opener[T any] func(ctx context.Context, url string) (T, error)

type Option

type Option[T any] func(*Options[T])

func WithCustomOpener

func WithCustomOpener[T any](opener Opener[T]) Option[T]

type Options

type Options[T any] struct {
	CustomOpener Opener[T]
	PoolOptions  []openurl.PoolOptions[T]
}

type Resolver

type Resolver[T any] interface {
	Get(ctx context.Context, data ...map[string]interface{}) (T, error)
}

Jump to

Keyboard shortcuts

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