imports

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTemplateImports

func LoadTemplateImports(ctx *Context, cfg *settings.Settings) map[tpl_types.Name][]*Import

Types

type Context

type Context struct {
	HasValidatableMessage   bool
	OutboundHasBitflagField bool
	UseCommonConverters     bool
	ModuleName              string
	FullPath                string
	Methods                 []*Method
	DomainMessages          []*Message
	OutboundMessages        []*Message
	ValidatableMessages     []*Message
	WireExtensions          []*Message
	WireInputMessages       []*Message
}

type Field

type Field struct {
	IsArray                        bool
	IsProtobufTimestamp            bool
	IsOutboundBitflag              bool
	OutboundHide                   bool
	ConversionDomainToWire         string
	ConversionWireOutputToOutbound string
	DomainType                     string
	WireType                       string
	OutboundType                   string
	TestingBinding                 string
	TestingCall                    string
	ValidationCall                 string
	ProtoField                     *protobuf.Field
}

type Import

type Import struct {
	Alias string
	Name  string
}

type Message

type Message struct {
	ValidationNeedsCustomRuleOptions bool
	Receiver                         string
	Fields                           []*Field
	ProtoMessage                     *protobuf.Message
}

type Method

type Method struct {
	HasRequiredBody    bool
	HasQueryArguments  bool
	HasHeaderArguments bool
}

Jump to

Keyboard shortcuts

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