reflect

package
v0.0.0-...-7e17cb5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Descriptor

type Descriptor struct {
	// contains filtered or unexported fields
}

func (*Descriptor) Alias

func (d *Descriptor) Alias() *Field

func (*Descriptor) Lookup

func (d *Descriptor) Lookup(name string) *Field

func (*Descriptor) Traverse

func (d *Descriptor) Traverse(doit func(name string, field *Field) bool)

type DescriptorPool

type DescriptorPool struct {
	// contains filtered or unexported fields
}

func (*DescriptorPool) Find

func (p *DescriptorPool) Find(fullname string) *Descriptor

func (*DescriptorPool) Register

func (p *DescriptorPool) Register(proto *pb.FileDescriptorProto) bool

type Field

type Field struct {
	// contains filtered or unexported fields
}

func (*Field) Id

func (f *Field) Id() uint16

func (*Field) IsMap

func (f *Field) IsMap() bool

func (*Field) IsRepeated

func (f *Field) IsRepeated() bool

func (*Field) IsValid

func (f *Field) IsValid() bool

func (*Field) Key

func (f *Field) Key() FieldType

func (*Field) Value

func (f *Field) Value() FieldType

func (*Field) ValueDescriptor

func (f *Field) ValueDescriptor() *Descriptor

func (*Field) ValueType

func (f *Field) ValueType() string

type FieldType

type FieldType uint8
const (
	TYPE_NONE    FieldType = 0
	TYPE_MESSAGE FieldType = 1
	TYPE_BYTES   FieldType = 2
	TYPE_STRING  FieldType = 3
	TYPE_FLOAT64 FieldType = 4
	TYPE_FLOAT32 FieldType = 5
	TYPE_UINT64  FieldType = 6
	TYPE_UINT32  FieldType = 7
	TYPE_INT64   FieldType = 8
	TYPE_INT32   FieldType = 9
	TYPE_BOOL    FieldType = 10
	TYPE_ENUM    FieldType = 11
	TYPE_UNKNOWN FieldType = 255
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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