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
Click to show internal directories.
Click to hide internal directories.