model

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RetryMax int = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeType

type AttributeType interface {
	String() string
	Value(s string) (interface{}, error)
	ConvertValueMember(s string) types.AttributeValue
}

type AttributeTypeStr

type AttributeTypeStr string

func (AttributeTypeStr) Name

type B

type B struct{}

func (B) ConvertValueMember added in v0.0.5

func (B) ConvertValueMember(s string) types.AttributeValue

func (B) String

func (B) String() string

func (B) Value

func (B) Value(s string) (interface{}, error)

type ComparisonOperator

type ComparisonOperator int
const (
	EQ ComparisonOperator = iota + 1
	NE
	LE
	LT
	GE
	GT
	EXISTS
	CONTAINS
	BeginsWith
	IN
	BETWEEN
)

func ConvertToComparisonOperator

func ConvertToComparisonOperator(op string) (ComparisonOperator, error)

func (ComparisonOperator) String added in v0.0.2

func (c ComparisonOperator) String() string

type GlobalSecondaryIndex

type GlobalSecondaryIndex struct {
	Name         string `json:"indexName"`
	PartitionKey *Key   `json:"partitionKey"`
	SortKey      *Key   `json:"sortKey,omitempty"`
}

type Key

type Key struct {
	Name    string        `json:"name"`
	Type    AttributeType `json:"-"`
	TypeStr string        `json:"type"`
}

type LogicalOperator

type LogicalOperator int
const (
	AND LogicalOperator = iota + 1
	OR
)

func ConvertToLogicalOperator

func ConvertToLogicalOperator(op string) (LogicalOperator, error)

type N

type N struct{}

func (N) ConvertValueMember added in v0.0.5

func (N) ConvertValueMember(s string) types.AttributeValue

func (N) String

func (N) String() string

func (N) Value

func (N) Value(s string) (interface{}, error)

type NS added in v0.0.2

type NS struct{}

func (NS) ConvertValueMember added in v0.0.5

func (NS) ConvertValueMember(s string) types.AttributeValue

func (NS) String added in v0.0.2

func (NS) String() string

func (NS) Value added in v0.0.2

func (NS) Value(s string) (interface{}, error)

type S

type S struct{}

func (S) ConvertValueMember added in v0.0.5

func (S) ConvertValueMember(s string) types.AttributeValue

func (S) String

func (S) String() string

func (S) Value

func (S) Value(s string) (interface{}, error)

type SS added in v0.0.2

type SS struct{}

func (SS) ConvertValueMember added in v0.0.5

func (SS) ConvertValueMember(s string) types.AttributeValue

func (SS) String added in v0.0.2

func (SS) String() string

func (SS) Value added in v0.0.2

func (SS) Value(s string) (interface{}, error)

type Table

type Table struct {
	Arn          string                  `json:"tableArn"`
	Name         string                  `json:"tableName"`
	PartitionKey *Key                    `json:"partitionKey"`
	SortKey      *Key                    `json:"sortKey,omitempty"`
	GSI          []*GlobalSecondaryIndex `json:"gsi,omitempty"`
	ItemCount    int64                   `json:"itemCount"`
}

Jump to

Keyboard shortcuts

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