Documentation ¶
Index ¶
- func Validator() pgs.Module
- type FieldType
- type Module
- func (m *Module) CheckAny(ft FieldType, r *validate.AnyRules)
- func (m *Module) CheckBytes(r *validate.BytesRules)
- func (m *Module) CheckDouble(r *validate.DoubleRules)
- func (m *Module) CheckDuration(ft FieldType, r *validate.DurationRules)
- func (m *Module) CheckEnum(ft FieldType, r *validate.EnumRules)
- func (m *Module) CheckFieldRules(typ FieldType, rules *validate.FieldRules)
- func (m *Module) CheckFixed32(r *validate.Fixed32Rules)
- func (m *Module) CheckFixed64(r *validate.Fixed64Rules)
- func (m *Module) CheckFloat(r *validate.FloatRules)
- func (m *Module) CheckInt32(r *validate.Int32Rules)
- func (m *Module) CheckInt64(r *validate.Int64Rules)
- func (m *Module) CheckMap(ft FieldType, r *validate.MapRules)
- func (m *Module) CheckMessage(ft FieldType, r *validate.MessageRules)
- func (m *Module) CheckRepeated(ft FieldType, r *validate.RepeatedRules)
- func (m *Module) CheckRules(msg pgs.Message)
- func (m *Module) CheckSFixed32(r *validate.SFixed32Rules)
- func (m *Module) CheckSFixed64(r *validate.SFixed64Rules)
- func (m *Module) CheckSInt32(r *validate.SInt32Rules)
- func (m *Module) CheckSInt64(r *validate.SInt64Rules)
- func (m *Module) CheckString(r *validate.StringRules)
- func (m *Module) CheckTimestamp(ft FieldType, r *validate.TimestampRules)
- func (m *Module) CheckUInt32(r *validate.UInt32Rules)
- func (m *Module) CheckUInt64(r *validate.UInt64Rules)
- 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) CheckBytes ¶
func (m *Module) CheckBytes(r *validate.BytesRules)
func (*Module) CheckDouble ¶
func (m *Module) CheckDouble(r *validate.DoubleRules)
func (*Module) CheckDuration ¶
func (m *Module) CheckDuration(ft FieldType, r *validate.DurationRules)
func (*Module) CheckFieldRules ¶
func (m *Module) CheckFieldRules(typ FieldType, rules *validate.FieldRules)
func (*Module) CheckFixed32 ¶
func (m *Module) CheckFixed32(r *validate.Fixed32Rules)
func (*Module) CheckFixed64 ¶
func (m *Module) CheckFixed64(r *validate.Fixed64Rules)
func (*Module) CheckFloat ¶
func (m *Module) CheckFloat(r *validate.FloatRules)
func (*Module) CheckInt32 ¶
func (m *Module) CheckInt32(r *validate.Int32Rules)
func (*Module) CheckInt64 ¶
func (m *Module) CheckInt64(r *validate.Int64Rules)
func (*Module) CheckMessage ¶
func (m *Module) CheckMessage(ft FieldType, r *validate.MessageRules)
func (*Module) CheckRepeated ¶
func (m *Module) CheckRepeated(ft FieldType, r *validate.RepeatedRules)
func (*Module) CheckRules ¶
func (m *Module) CheckRules(msg pgs.Message)
func (*Module) CheckSFixed32 ¶
func (m *Module) CheckSFixed32(r *validate.SFixed32Rules)
func (*Module) CheckSFixed64 ¶
func (m *Module) CheckSFixed64(r *validate.SFixed64Rules)
func (*Module) CheckSInt32 ¶
func (m *Module) CheckSInt32(r *validate.SInt32Rules)
func (*Module) CheckSInt64 ¶
func (m *Module) CheckSInt64(r *validate.SInt64Rules)
func (*Module) CheckString ¶
func (m *Module) CheckString(r *validate.StringRules)
func (*Module) CheckTimestamp ¶
func (m *Module) CheckTimestamp(ft FieldType, r *validate.TimestampRules)
func (*Module) CheckUInt32 ¶
func (m *Module) CheckUInt32(r *validate.UInt32Rules)
func (*Module) CheckUInt64 ¶
func (m *Module) CheckUInt64(r *validate.UInt64Rules)
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.