module

package
v0.0.0-...-fa4fb7d Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validator

func Validator() pgs.Module

Types

type FieldType

type FieldType interface {
	ProtoType() pgs.ProtoType
	Embed() pgs.Message
}

type Module

type Module struct {
	*pgs.ModuleBase
	// contains filtered or unexported fields
}

func (*Module) AddGeneratorTemplateFile

func (m *Module) AddGeneratorTemplateFile(name string, tpl pgs.Template, data interface{})

AddGeneratorTemplateFile behaves the same as AddGeneratorFile, however the contents are rendered from the provided tpl and data.

func (*Module) CheckAnyRules

func (m *Module) CheckAnyRules(ft FieldType, rules *validate.AnyRules, inject bool)

func (*Module) CheckBytes

func (m *Module) CheckBytes(r *validate.BytesRule)

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) CheckEnum

func (m *Module) CheckEnum(ft FieldType, r *validate.EnumRules, 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) CheckMap

func (m *Module) CheckMap(typ pgs.FieldType, r *validate.MapRule)

func (*Module) CheckMapRules

func (m *Module) CheckMapRules(ft FieldType, rules *validate.MapRules, inject bool)

func (*Module) CheckMessage

func (m *Module) CheckMessage(f pgs.Field, rules *validate.FieldRules, inject bool)

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 (m *Module) CheckRules(msg pgs.Message)

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) Execute

func (m *Module) Execute(targets map[string]pgs.File, pkgs map[string]pgs.Package) []pgs.Artifact

func (*Module) InitContext

func (m *Module) InitContext(ctx pgs.BuildContext)

func (*Module) MustType

func (m *Module) MustType(typ FieldType, pt pgs.ProtoType, wrapper pgs.WellKnownType)

func (*Module) Name

func (m *Module) Name() string

type Repeatable

type Repeatable interface {
	IsRepeated() bool
}

Jump to

Keyboard shortcuts

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