interfacecup

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package funccup provides various interface to implement in your projects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FactoryRegistryInterface

type FactoryRegistryInterface interface {
	RegisterStruct(objectName string, newInstanceFunc func() interface{})
	Instanciate(objectName string) (interface{}, error)
}

FactoryRegistry is a registry for creating instances of different structs.

type ValidatorRegistryInterface

type ValidatorRegistryInterface interface {
	AddValidator(string, funccup.Validator)
	RunTags(interface{}, string) error
}

ValidatorRegistryInterface is an interface that defines the methods that a validatorRegistry must implement.

Jump to

Keyboard shortcuts

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