constraints

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package constraints defines interfaces/constraints for the various interfaces defined in the Dogma package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurer

type Configurer interface {
	Identity(name, key string)
}

Configurer is the common interface for the Dogma configurer interfaces that are passed to the [Entity.Configure] method.

type Entity

type Entity[C Configurer] interface {
	Configure(C)
}

Entity is the common interface for the Dogma interfaces that represent an entity within a Dogma configuration; that is, types that are configured by implementing a Configure() method.

type Handler

type Handler[C HandlerConfigurer[R], R dogma.Route] interface {
	Entity[C]
}

Handler is an Entity that represents a Dogma handler.

type HandlerConfigurer

type HandlerConfigurer[R dogma.Route] interface {
	Configurer

	Routes(...R)
	Disable(...dogma.DisableOption)
}

HandlerConfigurer is a Configurer for configuring Handler entities.

Jump to

Keyboard shortcuts

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