Documentation
¶
Index ¶
- func DefaultValue(t any) any
- func FullName(t NamedType) string
- func LogMsg(msg string, args ...any)
- func LogObj(arg any)
- type Array
- type Bare
- type Enum
- type Field
- type Map
- type NamedType
- type Record
- type Ref
- type Type
- type TypeRepo
- func (r *TypeRepo) AddType(t NamedType)
- func (r *TypeRepo) GetType(name string) (Type, error)
- func (r *TypeRepo) GetTypeByBareName(name string) Type
- func (r *TypeRepo) LogTypes()
- func (r *TypeRepo) MappedNamespace(namespace string) string
- func (r *TypeRepo) SeenType(t NamedType)
- func (r *TypeRepo) Start()
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultValue ¶
Types ¶
type Enum ¶
func EnumFromProto ¶
func EnumFromProto(proto *descriptorpb.EnumDescriptorProto, protoPackage string) Enum
func (Enum) GetNamespace ¶
type Field ¶
func FieldFromProto ¶
func FieldFromProto(proto *descriptorpb.FieldDescriptorProto) Field
type Map ¶
func (Map) GetNamespace ¶
type NamedType ¶
func RecordFromProto ¶
func RecordFromProto(proto *descriptorpb.DescriptorProto, namespace string, typeRepo *TypeRepo) []NamedType
type Record ¶
func (Record) GetNamespace ¶
type Type ¶
func BasicFieldTypeFromProto ¶
func BasicFieldTypeFromProto(proto *descriptorpb.FieldDescriptorProto) Type
func FieldTypeFromProto ¶
func FieldTypeFromProto(proto *descriptorpb.FieldDescriptorProto) Type
type TypeRepo ¶
type TypeRepo struct { Types map[string]NamedType NamespaceMap map[string]string CollapseFields []string RemoveEnumPrefixes bool PreserveNonStringMaps bool // contains filtered or unexported fields }
func NewTypeRepo ¶
func (*TypeRepo) GetTypeByBareName ¶
func (*TypeRepo) MappedNamespace ¶
Click to show internal directories.
Click to hide internal directories.