Documentation ¶
Index ¶
- Variables
- type Encoding
- func (Encoding) Descriptor() protoreflect.EnumDescriptor
- func (x Encoding) Enum() *Encoding
- func (Encoding) EnumDescriptor() ([]byte, []int)deprecated
- func (x Encoding) Number() protoreflect.EnumNumber
- func (x Encoding) String() string
- func (Encoding) Type() protoreflect.EnumType
- func (x *Encoding) UnmarshalJSON(b []byte) errordeprecated
- type FieldOptions
- func (*FieldOptions) Descriptor() ([]byte, []int)deprecated
- func (x *FieldOptions) GetEmbed() Encoding
- func (x *FieldOptions) GetName() string
- func (x *FieldOptions) GetOmit() bool
- func (x *FieldOptions) GetPk() bool
- func (x *FieldOptions) GetSet() bool
- func (x *FieldOptions) GetSk() bool
- func (*FieldOptions) ProtoMessage()
- func (x *FieldOptions) ProtoReflect() protoreflect.Message
- func (x *FieldOptions) Reset()
- func (x *FieldOptions) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Encoding_name = map[int32]string{ 0: "ENCODING_UNSPECIFIED", 1: "ENCODING_JSON", 2: "ENCODING_DYNAMO", } Encoding_value = map[string]int32{ "ENCODING_UNSPECIFIED": 0, "ENCODING_JSON": 1, "ENCODING_DYNAMO": 2, } )
Enum value maps for Encoding.
View Source
var (
// optional ddb.v1.FieldOptions field = 1098;
E_Field = &file_ddb_v1_options_proto_extTypes[0]
)
Extension fields to descriptorpb.FieldOptions.
View Source
var File_ddb_v1_options_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Encoding ¶
type Encoding int32
encoding kinds
func (Encoding) Descriptor ¶
func (Encoding) Descriptor() protoreflect.EnumDescriptor
func (Encoding) Number ¶
func (x Encoding) Number() protoreflect.EnumNumber
func (Encoding) Type ¶
func (Encoding) Type() protoreflect.EnumType
type FieldOptions ¶
type FieldOptions struct { // specify the name of the DynamoDB attribute Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // indicate that the field represents the item's partition key Pk *bool `protobuf:"varint,2,opt,name=pk" json:"pk,omitempty"` // indicate that the field represents the item's sort key Sk *bool `protobuf:"varint,3,opt,name=sk" json:"sk,omitempty"` // indicate that the field should be ignored by Dynamo code generation Omit *bool `protobuf:"varint,4,opt,name=omit" json:"omit,omitempty"` // indicate that the field should be marshalled and unmarshalled from dynamo as a set Set *bool `protobuf:"varint,5,opt,name=set" json:"set,omitempty"` // allows for embedding the field's value as an encoded json or binary protobuf Embed *Encoding `protobuf:"varint,6,opt,name=embed,enum=ddb.v1.Encoding" json:"embed,omitempty"` // contains filtered or unexported fields }
FieldOptions presents options to configure fields to interact with protobuf powered rpc
func (*FieldOptions) Descriptor
deprecated
func (*FieldOptions) Descriptor() ([]byte, []int)
Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead.
func (*FieldOptions) GetEmbed ¶
func (x *FieldOptions) GetEmbed() Encoding
func (*FieldOptions) GetName ¶
func (x *FieldOptions) GetName() string
func (*FieldOptions) GetOmit ¶
func (x *FieldOptions) GetOmit() bool
func (*FieldOptions) GetPk ¶
func (x *FieldOptions) GetPk() bool
func (*FieldOptions) GetSet ¶
func (x *FieldOptions) GetSet() bool
func (*FieldOptions) GetSk ¶
func (x *FieldOptions) GetSk() bool
func (*FieldOptions) ProtoMessage ¶
func (*FieldOptions) ProtoMessage()
func (*FieldOptions) ProtoReflect ¶
func (x *FieldOptions) ProtoReflect() protoreflect.Message
func (*FieldOptions) Reset ¶
func (x *FieldOptions) Reset()
func (*FieldOptions) String ¶
func (x *FieldOptions) String() string
Click to show internal directories.
Click to hide internal directories.