Documentation ¶
Index ¶
- func Validator() pgs.Module
- type FieldType
- type Module
- func (m *Module) AddGeneratorTemplateFile(name string, tpl pgs.Template, data interface{})
- func (m *Module) CheckAnyRules(ft FieldType, rules *validate.AnyRules, inject bool)
- func (m *Module) CheckBytes(r *validate.BytesRule)
- func (m *Module) CheckBytesRules(rules *validate.BytesRules, inject bool)
- func (m *Module) CheckDouble(rules *validate.DoubleRules, inject bool)
- func (m *Module) CheckDuration(ft FieldType, r *validate.DurationRule)
- func (m *Module) CheckDurationRules(ft FieldType, rules *validate.DurationRules, inject bool)
- func (m *Module) CheckEnum(ft FieldType, r *validate.EnumRules, inject bool)
- func (m *Module) CheckFieldRules(typ FieldType, rules *validate.FieldRules, inject bool)
- func (m *Module) CheckFixed32(rules *validate.Fixed32Rules, inject bool)
- func (m *Module) CheckFixed64(rules *validate.Fixed64Rules, inject bool)
- func (m *Module) CheckFloat(rules *validate.FloatRules, inject bool)
- func (m *Module) CheckInt32(rules *validate.Int32Rules, inject bool)
- func (m *Module) CheckInt64(rules *validate.Int64Rules, inject bool)
- func (m *Module) CheckMap(typ pgs.FieldType, r *validate.MapRule)
- func (m *Module) CheckMapRules(ft FieldType, rules *validate.MapRules, inject bool)
- func (m *Module) CheckMessage(f pgs.Field, rules *validate.FieldRules, inject bool)
- func (m *Module) CheckRepeated(typ pgs.FieldType, r *validate.RepeatedRule)
- func (m *Module) CheckRepeatedRules(ft FieldType, rules *validate.RepeatedRules, inject bool)
- func (m *Module) CheckRules(msg pgs.Message)
- func (m *Module) CheckSFixed32(rules *validate.SFixed32Rules, inject bool)
- func (m *Module) CheckSFixed64(rules *validate.SFixed64Rules, inject bool)
- func (m *Module) CheckSInt32(rules *validate.SInt32Rules, inject bool)
- func (m *Module) CheckSInt64(rules *validate.SInt64Rules, inject bool)
- func (m *Module) CheckString(r *validate.StringRule)
- func (m *Module) CheckStringRules(rules *validate.StringRules, inject bool)
- func (m *Module) CheckTimestamp(ft FieldType, r *validate.TimestampRule)
- func (m *Module) CheckTimestampRules(ft FieldType, rules *validate.TimestampRules, inject bool)
- func (m *Module) CheckUInt32(rules *validate.UInt32Rules, inject bool)
- func (m *Module) CheckUInt64(rules *validate.UInt64Rules, inject bool)
- func (m *Module) Execute(targets map[string]pgs.File, pkgs map[string]pgs.Package) []pgs.Artifact
- func (m *Module) InitContext(ctx pgs.BuildContext)
- func (m *Module) MustType(typ FieldType, pt pgs.ProtoType, wrapper pgs.WellKnownType)
- func (m *Module) Name() string
- type Repeatable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Module ¶
type Module struct { *pgs.ModuleBase // contains filtered or unexported fields }
func (*Module) AddGeneratorTemplateFile ¶
AddGeneratorTemplateFile behaves the same as AddGeneratorFile, however the contents are rendered from the provided tpl and data.
func (*Module) CheckAnyRules ¶
func (*Module) CheckBytes ¶
func (*Module) CheckBytesRules ¶
func (m *Module) CheckBytesRules(rules *validate.BytesRules, inject bool)
func (*Module) CheckDouble ¶
func (m *Module) CheckDouble(rules *validate.DoubleRules, inject bool)
func (*Module) CheckDuration ¶
func (m *Module) CheckDuration(ft FieldType, r *validate.DurationRule)
func (*Module) CheckDurationRules ¶
func (m *Module) CheckDurationRules(ft FieldType, rules *validate.DurationRules, inject bool)
func (*Module) CheckFieldRules ¶
func (m *Module) CheckFieldRules(typ FieldType, rules *validate.FieldRules, inject bool)
func (*Module) CheckFixed32 ¶
func (m *Module) CheckFixed32(rules *validate.Fixed32Rules, inject bool)
func (*Module) CheckFixed64 ¶
func (m *Module) CheckFixed64(rules *validate.Fixed64Rules, inject bool)
func (*Module) CheckFloat ¶
func (m *Module) CheckFloat(rules *validate.FloatRules, inject bool)
func (*Module) CheckInt32 ¶
func (m *Module) CheckInt32(rules *validate.Int32Rules, inject bool)
func (*Module) CheckInt64 ¶
func (m *Module) CheckInt64(rules *validate.Int64Rules, inject bool)
func (*Module) CheckMapRules ¶
func (*Module) CheckMessage ¶
func (*Module) CheckRepeated ¶
func (m *Module) CheckRepeated(typ pgs.FieldType, r *validate.RepeatedRule)
func (*Module) CheckRepeatedRules ¶
func (m *Module) CheckRepeatedRules(ft FieldType, rules *validate.RepeatedRules, inject bool)
func (*Module) CheckRules ¶
func (*Module) CheckSFixed32 ¶
func (m *Module) CheckSFixed32(rules *validate.SFixed32Rules, inject bool)
func (*Module) CheckSFixed64 ¶
func (m *Module) CheckSFixed64(rules *validate.SFixed64Rules, inject bool)
func (*Module) CheckSInt32 ¶
func (m *Module) CheckSInt32(rules *validate.SInt32Rules, inject bool)
func (*Module) CheckSInt64 ¶
func (m *Module) CheckSInt64(rules *validate.SInt64Rules, inject bool)
func (*Module) CheckString ¶
func (m *Module) CheckString(r *validate.StringRule)
func (*Module) CheckStringRules ¶
func (m *Module) CheckStringRules(rules *validate.StringRules, inject bool)
func (*Module) CheckTimestamp ¶
func (m *Module) CheckTimestamp(ft FieldType, r *validate.TimestampRule)
func (*Module) CheckTimestampRules ¶
func (m *Module) CheckTimestampRules(ft FieldType, rules *validate.TimestampRules, inject bool)
func (*Module) CheckUInt32 ¶
func (m *Module) CheckUInt32(rules *validate.UInt32Rules, inject bool)
func (*Module) CheckUInt64 ¶
func (m *Module) CheckUInt64(rules *validate.UInt64Rules, inject bool)
func (*Module) InitContext ¶
func (m *Module) InitContext(ctx pgs.BuildContext)
type Repeatable ¶
type Repeatable interface {
IsRepeated() bool
}
Click to show internal directories.
Click to hide internal directories.