module

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 Defaults

func Defaults() *Module

func (*Module) Check

func (m *Module) Check(msg pgs.Message)

func (*Module) CheckDuration

func (m *Module) CheckDuration(ft FieldType, r string)

func (*Module) CheckEnum

func (m *Module) CheckEnum(ft FieldType, r uint32)

func (*Module) CheckFieldRules

func (m *Module) CheckFieldRules(typ FieldType, fieldDefaults *defaults.FieldDefaults)

func (*Module) CheckMessage

func (m *Module) CheckMessage(f pgs.Field, defaults *defaults.FieldDefaults)

func (*Module) CheckOneOf

func (m *Module) CheckOneOf(oneOf pgs.OneOf)

func (*Module) CheckTimestamp

func (m *Module) CheckTimestamp(ft FieldType, r string)

func (*Module) Execute

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

func (*Module) InitContext

func (m *Module) InitContext(c 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