annotation

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: MIT Imports: 3 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	Name       string
	Attributes map[string]string
}

type AnnotationDescriptor

type AnnotationDescriptor struct {
	Name       string
	ParamNames []string
	Validator  validationFunc
}

type AnnotationRegister

type AnnotationRegister interface {
	ResolveAnnotations(annotationDocline []string) []Annotation
	ResolveAnnotationByName(annotationDocline []string, name string) (Annotation, bool)
	ResolveAnnotation(annotationDocline string) (Annotation, bool)
}

func NewRegistry

func NewRegistry(descriptors []AnnotationDescriptor) AnnotationRegister

Jump to

Keyboard shortcuts

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