Documentation ¶
Index ¶
- func ProtoTypeToGoType(protobufType protoreflect.Kind, messageType, moduleName string) string
- func TrimPackageName(name, packageName string) string
- type Database
- type DatabaseKind
- type Field
- func (f *Field) ConvertDomainTypeToArrayWireType(receiver string, wireInput bool) string
- func (f *Field) ConvertDomainTypeToMapWireType(receiver string, wireInput bool) string
- func (f *Field) ConvertToWireType(wireInput bool) string
- func (f *Field) ConvertWireOutputToArrayOutbound(receiver string) string
- func (f *Field) ConvertWireOutputToMapOutbound(receiver string) string
- func (f *Field) ConvertWireOutputToOutbound(receiver string) string
- func (f *Field) DomainName() string
- func (f *Field) DomainTag() string
- func (f *Field) DomainType(isPointer bool) string
- func (f *Field) DomainTypeForTest(isPointer bool) string
- func (f *Field) InboundName() string
- func (f *Field) InboundTag() string
- func (f *Field) OutboundJsonTagFieldName() string
- func (f *Field) OutboundName() string
- func (f *Field) OutboundTag() string
- func (f *Field) OutboundType(isPointer bool) string
- func (f *Field) ValidationCall() string
- func (f *Field) ValidationName(receiver string) string
- func (f *Field) WireType(isPointer bool) string
- type FieldOptions
- type Message
- type MessageKind
- type MessageOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtoTypeToGoType ¶
func ProtoTypeToGoType(protobufType protoreflect.Kind, messageType, moduleName string) string
func TrimPackageName ¶
Types ¶
type Database ¶
type Database struct { Kind DatabaseKind // contains filtered or unexported fields }
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func NewField ¶
func NewField(options FieldOptions) (*Field, error)
func (*Field) ConvertDomainTypeToArrayWireType ¶
func (*Field) ConvertDomainTypeToMapWireType ¶
func (*Field) ConvertToWireType ¶
func (*Field) ConvertWireOutputToArrayOutbound ¶
func (*Field) ConvertWireOutputToMapOutbound ¶
func (*Field) ConvertWireOutputToOutbound ¶
func (*Field) DomainName ¶
func (*Field) DomainType ¶
DomainType returns the current field type for the domain.
func (*Field) DomainTypeForTest ¶
func (*Field) InboundName ¶
func (*Field) InboundTag ¶
func (*Field) OutboundJsonTagFieldName ¶
func (*Field) OutboundName ¶
func (*Field) OutboundTag ¶
func (*Field) OutboundType ¶
OutboundType returns the current field type for the outbound response.
func (*Field) ValidationCall ¶
func (*Field) ValidationName ¶
type FieldOptions ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func NewMessage ¶
func NewMessage(options MessageOptions) *Message
func (*Message) Kind ¶
func (m *Message) Kind(name string) MessageKind
func (*Message) WireOutputToOutbound ¶
func (*Message) WireToDomain ¶
func (*Message) WireToDomainMapValueType ¶
type MessageKind ¶
type MessageKind int
const ( UnknownMessageKind MessageKind = iota WireMessage WireInputMessage WireOutputMessage )
func (MessageKind) String ¶
func (k MessageKind) String() string
type MessageOptions ¶
Click to show internal directories.
Click to hide internal directories.