operator

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIOperator

type APIOperator interface {
	MethodOperator
	PathOperator
}

type DeepCopier

type DeepCopier interface {
	DeepCopy() Operator
}

type MethodOperator

type MethodOperator interface {
	Method() string
}

type Operator

type Operator interface {
	Output(*gin.Context) (any, error)
}

func DeepCopy

func DeepCopy(op Operator) Operator

type OperatorFactory

type OperatorFactory struct {
	Type     reflect.Type
	Operator Operator
}

OperatorFactory to create new operator

func NewOperatorFactory

func NewOperatorFactory(op Operator) *OperatorFactory

func (*OperatorFactory) New

func (fact *OperatorFactory) New() Operator

New create a new operator

type PathOperator

type PathOperator interface {
	Path() string
}

Jump to

Keyboard shortcuts

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