Documentation ¶
Overview ¶
Package etcdexample explains how to generate Golang structures from protobuf-formatted data.
Index ¶
- Variables
- type EtcdExample
- func (*EtcdExample) Descriptor() ([]byte, []int)deprecated
- func (x *EtcdExample) GetBoolVal() bool
- func (x *EtcdExample) GetStringVal() string
- func (x *EtcdExample) GetUint32Val() uint32
- func (*EtcdExample) ProtoMessage()
- func (x *EtcdExample) ProtoReflect() protoreflect.Message
- func (x *EtcdExample) Reset()
- func (x *EtcdExample) String() string
- type EtcdExampleStructExample
- func (*EtcdExampleStructExample) Descriptor() ([]byte, []int)deprecated
- func (x *EtcdExampleStructExample) GetVal1() string
- func (x *EtcdExampleStructExample) GetVal2() uint32
- func (*EtcdExampleStructExample) ProtoMessage()
- func (x *EtcdExampleStructExample) ProtoReflect() protoreflect.Message
- func (x *EtcdExampleStructExample) Reset()
- func (x *EtcdExampleStructExample) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_example_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EtcdExample ¶
type EtcdExample struct { StringVal string `protobuf:"bytes,1,opt,name=string_val,json=stringVal,proto3" json:"string_val,omitempty"` // Example of a string value Uint32Val uint32 `protobuf:"varint,2,opt,name=uint32_val,json=uint32Val,proto3" json:"uint32_val,omitempty"` // Example of a uint32 value BoolVal bool `protobuf:"varint,3,opt,name=bool_val,json=boolVal,proto3" json:"bool_val,omitempty"` // Example of a bool value // contains filtered or unexported fields }
func (*EtcdExample) Descriptor
deprecated
func (*EtcdExample) Descriptor() ([]byte, []int)
Deprecated: Use EtcdExample.ProtoReflect.Descriptor instead.
func (*EtcdExample) GetBoolVal ¶
func (x *EtcdExample) GetBoolVal() bool
func (*EtcdExample) GetStringVal ¶
func (x *EtcdExample) GetStringVal() string
func (*EtcdExample) GetUint32Val ¶
func (x *EtcdExample) GetUint32Val() uint32
func (*EtcdExample) ProtoMessage ¶
func (*EtcdExample) ProtoMessage()
func (*EtcdExample) ProtoReflect ¶
func (x *EtcdExample) ProtoReflect() protoreflect.Message
func (*EtcdExample) Reset ¶
func (x *EtcdExample) Reset()
func (*EtcdExample) String ¶
func (x *EtcdExample) String() string
type EtcdExampleStructExample ¶
type EtcdExampleStructExample struct { Val1 string `protobuf:"bytes,1,opt,name=val1,proto3" json:"val1,omitempty"` Val2 uint32 `protobuf:"varint,2,opt,name=val2,proto3" json:"val2,omitempty"` // contains filtered or unexported fields }
func (*EtcdExampleStructExample) Descriptor
deprecated
func (*EtcdExampleStructExample) Descriptor() ([]byte, []int)
Deprecated: Use EtcdExampleStructExample.ProtoReflect.Descriptor instead.
func (*EtcdExampleStructExample) GetVal1 ¶
func (x *EtcdExampleStructExample) GetVal1() string
func (*EtcdExampleStructExample) GetVal2 ¶
func (x *EtcdExampleStructExample) GetVal2() uint32
func (*EtcdExampleStructExample) ProtoMessage ¶
func (*EtcdExampleStructExample) ProtoMessage()
func (*EtcdExampleStructExample) ProtoReflect ¶
func (x *EtcdExampleStructExample) ProtoReflect() protoreflect.Message
func (*EtcdExampleStructExample) Reset ¶
func (x *EtcdExampleStructExample) Reset()
func (*EtcdExampleStructExample) String ¶
func (x *EtcdExampleStructExample) String() string
Click to show internal directories.
Click to hide internal directories.