Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldMapper ¶
type FieldMapper struct {
Parent *FieldMappers
Proto ast.Field
Field types.Field
FromProto types.FieldMapperFunc
ToProto types.FieldMapperFunc
}
func (*FieldMapper) GetFromProto ¶
func (m *FieldMapper) GetFromProto(src, dest string) string
func (*FieldMapper) GetToProto ¶
func (m *FieldMapper) GetToProto(src, dest string) string
type FieldMappers ¶
type FieldMappers struct {
// contains filtered or unexported fields
}
func NewFieldMappers ¶
func NewFieldMappers(mappersDict *dicts.MappersDict, fieldsDict *dicts.FieldDict) *FieldMappers
func (*FieldMappers) GetMapper ¶
func (m *FieldMappers) GetMapper(protoField ast.Field) types.FieldMapper
type ScalarMapper ¶
type ScalarMapper struct {
}
func (ScalarMapper) GoTypeName ¶
func (ScalarMapper) GoTypeName(t ast.ScalarNode) string
type TypeMapper ¶
type TypeMapper struct {
Types *dicts.TypeDict
Fields *dicts.FieldDict
// contains filtered or unexported fields
}
func NewTypeMapper ¶
func NewTypeMapper(excludeMessageField func(field ast.Field) bool) *TypeMapper
func (*TypeMapper) FromProtoField ¶
func (*TypeMapper) FromProtoType ¶
Click to show internal directories.
Click to hide internal directories.