v1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BasicEnum_name = map[int32]string{
		0: "First",
		1: "Second",
	}
	BasicEnum_value = map[string]int32{
		"First":  0,
		"Second": 1,
	}
)

Enum value maps for BasicEnum.

View Source
var File_v1_example_proto protoreflect.FileDescriptor

Functions

func StoreGsi1PkKey

func StoreGsi1PkKey(id string, country string, foo uint64) string

func StoreGsi1SkKey

func StoreGsi1SkKey() string

func StorePartitionKey

func StorePartitionKey(id string, country string, foo uint64) string

func StoreSortKey

func StoreSortKey() string

func StoreV2Gsi1PkKey added in v0.6.0

func StoreV2Gsi1PkKey(id string, country string, foo uint64) string

func StoreV2Gsi1SkKey added in v0.6.0

func StoreV2Gsi1SkKey() string

func StoreV2PartitionKey added in v0.6.0

func StoreV2PartitionKey(id string, country string, foo uint64) string

func StoreV2SortKey added in v0.6.0

func StoreV2SortKey() string

func UserGsi1PkKey

func UserGsi1PkKey(tenantId string) string

func UserGsi1SkKey

func UserGsi1SkKey(idpId string) string

func UserGsi2PkKey

func UserGsi2PkKey(tenantId string) string

func UserGsi2SkKey added in v0.6.0

func UserGsi2SkKey(idpId string, anEnum BasicEnum) string

func UserPartitionKey

func UserPartitionKey(tenantId string) string

func UserSortKey

func UserSortKey(id string) string

func UserV2Gsi1PkKey added in v0.6.0

func UserV2Gsi1PkKey(tenantId string) string

func UserV2Gsi1SkKey added in v0.6.0

func UserV2Gsi1SkKey(idpId string) string

func UserV2Gsi2PkKey added in v0.6.0

func UserV2Gsi2PkKey(tenantId string) string

func UserV2Gsi2SkKey added in v0.6.0

func UserV2Gsi2SkKey(idpId string, anEnum BasicEnum) string

func UserV2PartitionKey added in v0.6.0

func UserV2PartitionKey(tenantId string) string

func UserV2SortKey added in v0.6.0

func UserV2SortKey(id string) string

Types

type BasicEnum

type BasicEnum int32
const (
	BasicEnum_First  BasicEnum = 0
	BasicEnum_Second BasicEnum = 1
)

func (BasicEnum) Descriptor

func (BasicEnum) Descriptor() protoreflect.EnumDescriptor

func (BasicEnum) Enum

func (x BasicEnum) Enum() *BasicEnum

func (BasicEnum) EnumDescriptor deprecated

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

Deprecated: Use BasicEnum.Descriptor instead.

func (BasicEnum) Number

func (x BasicEnum) Number() protoreflect.EnumNumber

func (BasicEnum) String

func (x BasicEnum) String() string

func (BasicEnum) Type

type Store

type Store struct {
	Id              string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Country         string                 `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
	Region          string                 `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	State           string                 `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
	City            string                 `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"`
	Closed          bool                   `protobuf:"varint,6,opt,name=closed,proto3" json:"closed,omitempty"`
	OpeningDate     *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=opening_date,json=openingDate,proto3" json:"opening_date,omitempty"`
	BestEmployeeIds []string               `protobuf:"bytes,8,rep,name=best_employee_ids,json=bestEmployeeIds,proto3" json:"best_employee_ids,omitempty"`
	BinDate         *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=bin_date,json=binDate,proto3" json:"bin_date,omitempty"`
	UpdatedAt       *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	ExpiresAt       *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	ExpiresAtMs     *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=expires_at_ms,json=expiresAtMs,proto3" json:"expires_at_ms,omitempty"`
	ExpiresAtNs     *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=expires_at_ns,json=expiresAtNs,proto3" json:"expires_at_ns,omitempty"`
	Foo             uint64                 `protobuf:"varint,99,opt,name=foo,proto3" json:"foo,omitempty"`
	Morefoo         []uint64               `protobuf:"varint,100,rep,packed,name=morefoo,proto3" json:"morefoo,omitempty"`
	// contains filtered or unexported fields
}

func (*Store) Descriptor deprecated

func (*Store) Descriptor() ([]byte, []int)

Deprecated: Use Store.ProtoReflect.Descriptor instead.

func (*Store) GetBestEmployeeIds

func (x *Store) GetBestEmployeeIds() []string

func (*Store) GetBinDate

func (x *Store) GetBinDate() *timestamppb.Timestamp

func (*Store) GetCity

func (x *Store) GetCity() string

func (*Store) GetClosed

func (x *Store) GetClosed() bool

func (*Store) GetCountry

func (x *Store) GetCountry() string

func (*Store) GetExpiresAt

func (x *Store) GetExpiresAt() *timestamppb.Timestamp

func (*Store) GetExpiresAtMs

func (x *Store) GetExpiresAtMs() *timestamppb.Timestamp

func (*Store) GetExpiresAtNs

func (x *Store) GetExpiresAtNs() *timestamppb.Timestamp

func (*Store) GetFoo

func (x *Store) GetFoo() uint64

func (*Store) GetId

func (x *Store) GetId() string

func (*Store) GetMorefoo

func (x *Store) GetMorefoo() []uint64

func (*Store) GetOpeningDate

func (x *Store) GetOpeningDate() *timestamppb.Timestamp

func (*Store) GetRegion

func (x *Store) GetRegion() string

func (*Store) GetState

func (x *Store) GetState() string

func (*Store) GetUpdatedAt

func (x *Store) GetUpdatedAt() *timestamppb.Timestamp

func (*Store) Gsi1PkKey

func (p *Store) Gsi1PkKey() string

func (*Store) Gsi1SkKey

func (p *Store) Gsi1SkKey() string

func (*Store) MarshalDynamo

func (p *Store) MarshalDynamo() (types.AttributeValue, error)

func (*Store) MarshalDynamoDBAttributeValue

func (p *Store) MarshalDynamoDBAttributeValue() (types.AttributeValue, error)

func (*Store) MarshalDynamoItem

func (p *Store) MarshalDynamoItem() (map[string]types.AttributeValue, error)

func (*Store) PartitionKey

func (p *Store) PartitionKey() string

func (*Store) ProtoMessage

func (*Store) ProtoMessage()

func (*Store) ProtoReflect

func (x *Store) ProtoReflect() protoreflect.Message

func (*Store) Reset

func (x *Store) Reset()

func (*Store) SortKey

func (p *Store) SortKey() string

func (*Store) String

func (x *Store) String() string

func (*Store) UnmarshalDynamo

func (p *Store) UnmarshalDynamo(av types.AttributeValue) error

func (*Store) UnmarshalDynamoDBAttributeValue

func (p *Store) UnmarshalDynamoDBAttributeValue(av types.AttributeValue) error

func (*Store) UnmarshalDynamoItem

func (p *Store) UnmarshalDynamoItem(av map[string]types.AttributeValue) error

func (*Store) Version

func (p *Store) Version() (int64, error)

type StoreV2 added in v0.6.0

type StoreV2 struct {
	Id              string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Country         string                 `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
	Region          string                 `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	State           string                 `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
	City            string                 `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"`
	Closed          bool                   `protobuf:"varint,6,opt,name=closed,proto3" json:"closed,omitempty"`
	OpeningDate     *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=opening_date,json=openingDate,proto3" json:"opening_date,omitempty"`
	BestEmployeeIds []string               `protobuf:"bytes,8,rep,name=best_employee_ids,json=bestEmployeeIds,proto3" json:"best_employee_ids,omitempty"`
	BinDate         *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=bin_date,json=binDate,proto3" json:"bin_date,omitempty"`
	UpdatedAt       *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	ExpiresAt       *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	ExpiresAtMs     *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=expires_at_ms,json=expiresAtMs,proto3" json:"expires_at_ms,omitempty"`
	ExpiresAtNs     *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=expires_at_ns,json=expiresAtNs,proto3" json:"expires_at_ns,omitempty"`
	Foo             uint64                 `protobuf:"varint,99,opt,name=foo,proto3" json:"foo,omitempty"`
	Morefoo         []uint64               `protobuf:"varint,100,rep,packed,name=morefoo,proto3" json:"morefoo,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreV2) Descriptor deprecated added in v0.6.0

func (*StoreV2) Descriptor() ([]byte, []int)

Deprecated: Use StoreV2.ProtoReflect.Descriptor instead.

func (*StoreV2) GetBestEmployeeIds added in v0.6.0

func (x *StoreV2) GetBestEmployeeIds() []string

func (*StoreV2) GetBinDate added in v0.6.0

func (x *StoreV2) GetBinDate() *timestamppb.Timestamp

func (*StoreV2) GetCity added in v0.6.0

func (x *StoreV2) GetCity() string

func (*StoreV2) GetClosed added in v0.6.0

func (x *StoreV2) GetClosed() bool

func (*StoreV2) GetCountry added in v0.6.0

func (x *StoreV2) GetCountry() string

func (*StoreV2) GetExpiresAt added in v0.6.0

func (x *StoreV2) GetExpiresAt() *timestamppb.Timestamp

func (*StoreV2) GetExpiresAtMs added in v0.6.0

func (x *StoreV2) GetExpiresAtMs() *timestamppb.Timestamp

func (*StoreV2) GetExpiresAtNs added in v0.6.0

func (x *StoreV2) GetExpiresAtNs() *timestamppb.Timestamp

func (*StoreV2) GetFoo added in v0.6.0

func (x *StoreV2) GetFoo() uint64

func (*StoreV2) GetId added in v0.6.0

func (x *StoreV2) GetId() string

func (*StoreV2) GetMorefoo added in v0.6.0

func (x *StoreV2) GetMorefoo() []uint64

func (*StoreV2) GetOpeningDate added in v0.6.0

func (x *StoreV2) GetOpeningDate() *timestamppb.Timestamp

func (*StoreV2) GetRegion added in v0.6.0

func (x *StoreV2) GetRegion() string

func (*StoreV2) GetState added in v0.6.0

func (x *StoreV2) GetState() string

func (*StoreV2) GetUpdatedAt added in v0.6.0

func (x *StoreV2) GetUpdatedAt() *timestamppb.Timestamp

func (*StoreV2) Gsi1PkKey added in v0.6.0

func (p *StoreV2) Gsi1PkKey() string

func (*StoreV2) Gsi1SkKey added in v0.6.0

func (p *StoreV2) Gsi1SkKey() string

func (*StoreV2) MarshalDynamo added in v0.6.0

func (p *StoreV2) MarshalDynamo() (types.AttributeValue, error)

func (*StoreV2) MarshalDynamoDBAttributeValue added in v0.6.0

func (p *StoreV2) MarshalDynamoDBAttributeValue() (types.AttributeValue, error)

func (*StoreV2) MarshalDynamoItem added in v0.6.0

func (p *StoreV2) MarshalDynamoItem() (map[string]types.AttributeValue, error)

func (*StoreV2) PartitionKey added in v0.6.0

func (p *StoreV2) PartitionKey() string

func (*StoreV2) ProtoMessage added in v0.6.0

func (*StoreV2) ProtoMessage()

func (*StoreV2) ProtoReflect added in v0.6.0

func (x *StoreV2) ProtoReflect() protoreflect.Message

func (*StoreV2) Reset added in v0.6.0

func (x *StoreV2) Reset()

func (*StoreV2) SortKey added in v0.6.0

func (p *StoreV2) SortKey() string

func (*StoreV2) String added in v0.6.0

func (x *StoreV2) String() string

func (*StoreV2) UnmarshalDynamo added in v0.6.0

func (p *StoreV2) UnmarshalDynamo(av types.AttributeValue) error

func (*StoreV2) UnmarshalDynamoDBAttributeValue added in v0.6.0

func (p *StoreV2) UnmarshalDynamoDBAttributeValue(av types.AttributeValue) error

func (*StoreV2) UnmarshalDynamoItem added in v0.6.0

func (p *StoreV2) UnmarshalDynamoItem(av map[string]types.AttributeValue) error

func (*StoreV2) Version added in v0.6.0

func (p *StoreV2) Version() (int64, error)

type User

type User struct {
	TenantId    string                 `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Id          string                 `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	IdpId       string                 `protobuf:"bytes,6,opt,name=idp_id,json=idpId,proto3" json:"idp_id,omitempty"`
	DisplayName string                 `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	Email       string                 `protobuf:"bytes,8,opt,name=email,proto3" json:"email,omitempty"`
	AnEnum      BasicEnum              `protobuf:"varint,9,opt,name=an_enum,json=anEnum,proto3,enum=examplepb.v1.BasicEnum" json:"an_enum,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAnEnum

func (x *User) GetAnEnum() BasicEnum

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetDeletedAt

func (x *User) GetDeletedAt() *timestamppb.Timestamp

func (*User) GetDisplayName

func (x *User) GetDisplayName() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetIdpId

func (x *User) GetIdpId() string

func (*User) GetTenantId

func (x *User) GetTenantId() string

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamppb.Timestamp

func (*User) Gsi1PkKey

func (p *User) Gsi1PkKey() string

func (*User) Gsi1SkKey

func (p *User) Gsi1SkKey() string

func (*User) Gsi2PkKey

func (p *User) Gsi2PkKey() string

func (*User) Gsi2SkKey added in v0.6.0

func (p *User) Gsi2SkKey() string

func (*User) MarshalDynamo

func (p *User) MarshalDynamo() (types.AttributeValue, error)

func (*User) MarshalDynamoDBAttributeValue

func (p *User) MarshalDynamoDBAttributeValue() (types.AttributeValue, error)

func (*User) MarshalDynamoItem

func (p *User) MarshalDynamoItem() (map[string]types.AttributeValue, error)

func (*User) PartitionKey

func (p *User) PartitionKey() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) SortKey

func (p *User) SortKey() string

func (*User) String

func (x *User) String() string

func (*User) UnmarshalDynamo

func (p *User) UnmarshalDynamo(av types.AttributeValue) error

func (*User) UnmarshalDynamoDBAttributeValue

func (p *User) UnmarshalDynamoDBAttributeValue(av types.AttributeValue) error

func (*User) UnmarshalDynamoItem

func (p *User) UnmarshalDynamoItem(av map[string]types.AttributeValue) error

func (*User) Version

func (p *User) Version() (int64, error)

type UserV2 added in v0.6.0

type UserV2 struct {
	TenantId    string                 `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Id          string                 `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	IdpId       string                 `protobuf:"bytes,6,opt,name=idp_id,json=idpId,proto3" json:"idp_id,omitempty"`
	DisplayName string                 `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	Email       string                 `protobuf:"bytes,8,opt,name=email,proto3" json:"email,omitempty"`
	AnEnum      BasicEnum              `protobuf:"varint,9,opt,name=an_enum,json=anEnum,proto3,enum=examplepb.v1.BasicEnum" json:"an_enum,omitempty"`
	// contains filtered or unexported fields
}

func (*UserV2) Descriptor deprecated added in v0.6.0

func (*UserV2) Descriptor() ([]byte, []int)

Deprecated: Use UserV2.ProtoReflect.Descriptor instead.

func (*UserV2) GetAnEnum added in v0.6.0

func (x *UserV2) GetAnEnum() BasicEnum

func (*UserV2) GetCreatedAt added in v0.6.0

func (x *UserV2) GetCreatedAt() *timestamppb.Timestamp

func (*UserV2) GetDeletedAt added in v0.6.0

func (x *UserV2) GetDeletedAt() *timestamppb.Timestamp

func (*UserV2) GetDisplayName added in v0.6.0

func (x *UserV2) GetDisplayName() string

func (*UserV2) GetEmail added in v0.6.0

func (x *UserV2) GetEmail() string

func (*UserV2) GetId added in v0.6.0

func (x *UserV2) GetId() string

func (*UserV2) GetIdpId added in v0.6.0

func (x *UserV2) GetIdpId() string

func (*UserV2) GetTenantId added in v0.6.0

func (x *UserV2) GetTenantId() string

func (*UserV2) GetUpdatedAt added in v0.6.0

func (x *UserV2) GetUpdatedAt() *timestamppb.Timestamp

func (*UserV2) Gsi1PkKey added in v0.6.0

func (p *UserV2) Gsi1PkKey() string

func (*UserV2) Gsi1SkKey added in v0.6.0

func (p *UserV2) Gsi1SkKey() string

func (*UserV2) Gsi2PkKey added in v0.6.0

func (p *UserV2) Gsi2PkKey() string

func (*UserV2) Gsi2SkKey added in v0.6.0

func (p *UserV2) Gsi2SkKey() string

func (*UserV2) MarshalDynamo added in v0.6.0

func (p *UserV2) MarshalDynamo() (types.AttributeValue, error)

func (*UserV2) MarshalDynamoDBAttributeValue added in v0.6.0

func (p *UserV2) MarshalDynamoDBAttributeValue() (types.AttributeValue, error)

func (*UserV2) MarshalDynamoItem added in v0.6.0

func (p *UserV2) MarshalDynamoItem() (map[string]types.AttributeValue, error)

func (*UserV2) PartitionKey added in v0.6.0

func (p *UserV2) PartitionKey() string

func (*UserV2) ProtoMessage added in v0.6.0

func (*UserV2) ProtoMessage()

func (*UserV2) ProtoReflect added in v0.6.0

func (x *UserV2) ProtoReflect() protoreflect.Message

func (*UserV2) Reset added in v0.6.0

func (x *UserV2) Reset()

func (*UserV2) SortKey added in v0.6.0

func (p *UserV2) SortKey() string

func (*UserV2) String added in v0.6.0

func (x *UserV2) String() string

func (*UserV2) UnmarshalDynamo added in v0.6.0

func (p *UserV2) UnmarshalDynamo(av types.AttributeValue) error

func (*UserV2) UnmarshalDynamoDBAttributeValue added in v0.6.0

func (p *UserV2) UnmarshalDynamoDBAttributeValue(av types.AttributeValue) error

func (*UserV2) UnmarshalDynamoItem added in v0.6.0

func (p *UserV2) UnmarshalDynamoItem(av map[string]types.AttributeValue) error

func (*UserV2) Version added in v0.6.0

func (p *UserV2) Version() (int64, error)

Jump to

Keyboard shortcuts

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