plugin

package
v0.0.0-...-65b3f14 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmitResponse

func EmitResponse(resp *plugin.CodeGeneratorResponse) error

func GenerateResponse

func GenerateResponse(fields []*FieldValidation) *plugin.CodeGeneratorResponse

func ParseRequest

func ParseRequest(r io.Reader) (*plugin.CodeGeneratorRequest, error)

Types

type FieldValidation

type FieldValidation struct {
	FieldValidator
	// contains filtered or unexported fields
}

func ProcessRequest

func ProcessRequest(req *plugin.CodeGeneratorRequest) []*FieldValidation

func (*FieldValidation) GetFieldName

func (fv *FieldValidation) GetFieldName() string

func (*FieldValidation) IsBytesField

func (fv *FieldValidation) IsBytesField() bool

func (*FieldValidation) IsFloatField

func (fv *FieldValidation) IsFloatField() bool

func (*FieldValidation) IsIntegerField

func (fv *FieldValidation) IsIntegerField() bool

func (*FieldValidation) IsStringField

func (fv *FieldValidation) IsStringField() bool

Jump to

Keyboard shortcuts

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