ddbv1

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package ddbv1 holds generated Go code

Index

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 added in v0.2.0

type Encoding int32

encoding kinds

const (
	// unspecified encoding
	Encoding_ENCODING_UNSPECIFIED Encoding = 0
	// json encoding
	Encoding_ENCODING_JSON Encoding = 1
	// dynamo encoding
	Encoding_ENCODING_DYNAMO Encoding = 2
)

func (Encoding) Descriptor added in v0.2.0

func (Encoding) Descriptor() protoreflect.EnumDescriptor

func (Encoding) Enum added in v0.2.0

func (x Encoding) Enum() *Encoding

func (Encoding) EnumDescriptor deprecated added in v0.2.0

func (Encoding) EnumDescriptor() ([]byte, []int)

Deprecated: Use Encoding.Descriptor instead.

func (Encoding) Number added in v0.2.0

func (x Encoding) Number() protoreflect.EnumNumber

func (Encoding) String added in v0.2.0

func (x Encoding) String() string

func (Encoding) Type added in v0.2.0

func (*Encoding) UnmarshalJSON deprecated added in v0.2.0

func (x *Encoding) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

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 added in v0.2.0

func (x *FieldOptions) GetEmbed() Encoding

func (*FieldOptions) GetName

func (x *FieldOptions) GetName() string

func (*FieldOptions) GetOmit added in v0.2.0

func (x *FieldOptions) GetOmit() bool

func (*FieldOptions) GetPk added in v0.1.0

func (x *FieldOptions) GetPk() bool

func (*FieldOptions) GetSet added in v0.2.0

func (x *FieldOptions) GetSet() bool

func (*FieldOptions) GetSk added in v0.1.0

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

Directories

Path Synopsis
Package ddbv1ddbpath holds generated code for working with Dynamo document paths
Package ddbv1ddbpath holds generated code for working with Dynamo document paths

Jump to

Keyboard shortcuts

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