Documentation ¶
Index ¶
- func DottedName(o CoreDesc) string
- type CoreDesc
- type EnumDescriptor
- type EnumValueDescriptor
- func (bd EnumValueDescriptor) Class() string
- func (bd EnumValueDescriptor) FileDesc() *FileDescriptor
- func (bd EnumValueDescriptor) IsHidden() bool
- func (bd EnumValueDescriptor) Location() LocationDescriptor
- func (bd EnumValueDescriptor) PackageDesc() *PackageDescriptor
- func (bd EnumValueDescriptor) QualifiedName() []string
- type FieldDescriptor
- func (bd FieldDescriptor) Class() string
- func (bd FieldDescriptor) FileDesc() *FileDescriptor
- func (bd FieldDescriptor) IsHidden() bool
- func (f *FieldDescriptor) IsRepeated() bool
- func (bd FieldDescriptor) Location() LocationDescriptor
- func (bd FieldDescriptor) PackageDesc() *PackageDescriptor
- func (bd FieldDescriptor) QualifiedName() []string
- type FileDescriptor
- type FrontMatter
- type LocationDescriptor
- type MessageDescriptor
- func (bd MessageDescriptor) Class() string
- func (bd MessageDescriptor) FileDesc() *FileDescriptor
- func (bd MessageDescriptor) IsHidden() bool
- func (bd MessageDescriptor) Location() LocationDescriptor
- func (bd MessageDescriptor) PackageDesc() *PackageDescriptor
- func (bd MessageDescriptor) QualifiedName() []string
- type MethodDescriptor
- func (bd MethodDescriptor) Class() string
- func (bd MethodDescriptor) FileDesc() *FileDescriptor
- func (bd MethodDescriptor) IsHidden() bool
- func (bd MethodDescriptor) Location() LocationDescriptor
- func (bd MethodDescriptor) PackageDesc() *PackageDescriptor
- func (bd MethodDescriptor) QualifiedName() []string
- type Mode
- type Model
- type PackageDescriptor
- func (bd PackageDescriptor) Class() string
- func (bd PackageDescriptor) FileDesc() *FileDescriptor
- func (bd PackageDescriptor) IsHidden() bool
- func (bd PackageDescriptor) Location() LocationDescriptor
- func (bd PackageDescriptor) PackageDesc() *PackageDescriptor
- func (bd PackageDescriptor) QualifiedName() []string
- type ServiceDescriptor
- func (bd ServiceDescriptor) Class() string
- func (bd ServiceDescriptor) FileDesc() *FileDescriptor
- func (bd ServiceDescriptor) IsHidden() bool
- func (bd ServiceDescriptor) Location() LocationDescriptor
- func (bd ServiceDescriptor) PackageDesc() *PackageDescriptor
- func (bd ServiceDescriptor) QualifiedName() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DottedName ¶
DottedName returns a dotted representation of the coreDesc's name
Types ¶
type CoreDesc ¶
type CoreDesc interface { PackageDesc() *PackageDescriptor FileDesc() *FileDescriptor QualifiedName() []string IsHidden() bool Class() string Location() LocationDescriptor }
CoreDesc is an interface abstracting the abilities shared by all descriptors
type EnumDescriptor ¶
type EnumDescriptor struct { *descriptor.EnumDescriptorProto Values []*EnumValueDescriptor // The values of this enum // contains filtered or unexported fields }
func (EnumDescriptor) FileDesc ¶
func (bd EnumDescriptor) FileDesc() *FileDescriptor
func (EnumDescriptor) Location ¶
func (bd EnumDescriptor) Location() LocationDescriptor
func (EnumDescriptor) PackageDesc ¶
func (bd EnumDescriptor) PackageDesc() *PackageDescriptor
func (EnumDescriptor) QualifiedName ¶
func (bd EnumDescriptor) QualifiedName() []string
type EnumValueDescriptor ¶
type EnumValueDescriptor struct { *descriptor.EnumValueDescriptorProto // contains filtered or unexported fields }
func (EnumValueDescriptor) FileDesc ¶
func (bd EnumValueDescriptor) FileDesc() *FileDescriptor
func (EnumValueDescriptor) Location ¶
func (bd EnumValueDescriptor) Location() LocationDescriptor
func (EnumValueDescriptor) PackageDesc ¶
func (bd EnumValueDescriptor) PackageDesc() *PackageDescriptor
func (EnumValueDescriptor) QualifiedName ¶
func (bd EnumValueDescriptor) QualifiedName() []string
type FieldDescriptor ¶
type FieldDescriptor struct { *descriptor.FieldDescriptorProto FieldType CoreDesc // Type of data held by this field // contains filtered or unexported fields }
func (FieldDescriptor) FileDesc ¶
func (bd FieldDescriptor) FileDesc() *FileDescriptor
func (*FieldDescriptor) IsRepeated ¶
func (f *FieldDescriptor) IsRepeated() bool
func (FieldDescriptor) Location ¶
func (bd FieldDescriptor) Location() LocationDescriptor
func (FieldDescriptor) PackageDesc ¶
func (bd FieldDescriptor) PackageDesc() *PackageDescriptor
func (FieldDescriptor) QualifiedName ¶
func (bd FieldDescriptor) QualifiedName() []string
type FileDescriptor ¶
type FileDescriptor struct { *descriptor.FileDescriptorProto Parent *PackageDescriptor AllMessages []*MessageDescriptor // All the messages defined in this file AllEnums []*EnumDescriptor // All the enums defined in this file Messages []*MessageDescriptor // Top-level messages defined in this file Enums []*EnumDescriptor // Top-level enums defined in this file Services []*ServiceDescriptor // All services defined in this file Dependencies []*FileDescriptor // Files imported by this file Matter FrontMatter // Title, overview, homeLocation, front_matter // contains filtered or unexported fields }
type FrontMatter ¶
type LocationDescriptor ¶
type LocationDescriptor struct { *descriptor.SourceCodeInfo_Location File *FileDescriptor }
type MessageDescriptor ¶
type MessageDescriptor struct { *descriptor.DescriptorProto Parent *MessageDescriptor // The containing message, if any Messages []*MessageDescriptor // Inner messages, if any Enums []*EnumDescriptor // Inner enums, if any Fields []*FieldDescriptor // Fields, if any // contains filtered or unexported fields }
func (MessageDescriptor) FileDesc ¶
func (bd MessageDescriptor) FileDesc() *FileDescriptor
func (MessageDescriptor) Location ¶
func (bd MessageDescriptor) Location() LocationDescriptor
func (MessageDescriptor) PackageDesc ¶
func (bd MessageDescriptor) PackageDesc() *PackageDescriptor
func (MessageDescriptor) QualifiedName ¶
func (bd MessageDescriptor) QualifiedName() []string
type MethodDescriptor ¶
type MethodDescriptor struct { *descriptor.MethodDescriptorProto Input *MessageDescriptor Output *MessageDescriptor // contains filtered or unexported fields }
func (MethodDescriptor) FileDesc ¶
func (bd MethodDescriptor) FileDesc() *FileDescriptor
func (MethodDescriptor) Location ¶
func (bd MethodDescriptor) Location() LocationDescriptor
func (MethodDescriptor) PackageDesc ¶
func (bd MethodDescriptor) PackageDesc() *PackageDescriptor
func (MethodDescriptor) QualifiedName ¶
func (bd MethodDescriptor) QualifiedName() []string
type Model ¶
type Model struct { AllFilesByName map[string]*FileDescriptor AllDescByName map[string]CoreDesc Packages []*PackageDescriptor }
model represents a resolved in-memory version of all the input protos
type PackageDescriptor ¶
type PackageDescriptor struct { Files []*FileDescriptor Name string // contains filtered or unexported fields }
PackageDescriptor describes a package, which is a composition of proto files.
func (PackageDescriptor) FileDesc ¶
func (bd PackageDescriptor) FileDesc() *FileDescriptor
func (PackageDescriptor) Location ¶
func (bd PackageDescriptor) Location() LocationDescriptor
func (PackageDescriptor) PackageDesc ¶
func (bd PackageDescriptor) PackageDesc() *PackageDescriptor
func (PackageDescriptor) QualifiedName ¶
func (bd PackageDescriptor) QualifiedName() []string
type ServiceDescriptor ¶
type ServiceDescriptor struct { *descriptor.ServiceDescriptorProto Methods []*MethodDescriptor // Methods, if any // contains filtered or unexported fields }
func (ServiceDescriptor) FileDesc ¶
func (bd ServiceDescriptor) FileDesc() *FileDescriptor
func (ServiceDescriptor) Location ¶
func (bd ServiceDescriptor) Location() LocationDescriptor
func (ServiceDescriptor) PackageDesc ¶
func (bd ServiceDescriptor) PackageDesc() *PackageDescriptor
func (ServiceDescriptor) QualifiedName ¶
func (bd ServiceDescriptor) QualifiedName() []string
Click to show internal directories.
Click to hide internal directories.