Documentation ¶
Overview ¶
Support for the DynamoDB Scan endpoint.
example use:
tests/scan-livestest.go
Index ¶
Constants ¶
View Source
const ( ENDPOINT_NAME = "Scan" SCAN_ENDPOINT = aws_const.ENDPOINT_PREFIX + ENDPOINT_NAME OP_EQ = "EQ" OP_NE = "NE" OP_LE = "LE" OP_LT = "LT" OP_GE = "GE" OP_GT = "GT" OP_NULL = "NULL" OP_NOT_NULL = "NOT_NULL" OP_CONTAINS = "CONTAINS" OP_NOT_CONTAINS = "NOT_CONTAINS" OP_BEGINS_WITH = "BEGINS_WITH" OP_IN = "IN" OP_BETWEEN = "BETWEEN" LIMIT = 10000 // limit of scan unless set )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComparisonOperator ¶
type ComparisonOperator string
func (ComparisonOperator) MarshalJSON ¶
func (c ComparisonOperator) MarshalJSON() ([]byte, error)
type Request ¶
type Request Scan
func (Request) EndpointReq ¶
EndpointReq implements the Endpoint interface on the local Request type.
func (Request) MarshalJSON ¶
type Response ¶
type Response struct { Count uint64 Items []ep.Item LastEvaluatedKey ep.Item ConsumedCapacity ep.ConsumedCapacity ScannedCount uint64 }
func NewResponse ¶
func NewResponse() *Response
NewResponse will return a pointer to an initialized Response struct.
type Scan ¶
type Scan struct { AttributesToGet ep.AttributesToGet ExclusiveStartKey ep.Item ReturnConsumedCapacity ep.ReturnConsumedCapacity Limit ep.NullableUInt64 ScanFilter ScanFilters Select ep.Select Segment ep.NullableUInt64 TableName string TotalSegments ep.NullableUInt64 }
func NewScan ¶
func NewScan() *Scan
NewScan returns a pointer to an instantiation of the Scan struct.
func (Scan) EndpointReq ¶
EndpointReq implements the Endpoint interface.
func (Scan) MarshalJSON ¶
MarshalJSON for Scan types will test the TotalSegments and if they are nonzero, allow the Segment field to be set to zero instead of being null'd, which is the default behavior of both Segment and TotalSegments are defaulted to zero
type ScanFilter ¶
type ScanFilter struct { AttributeValueList []ep.AttributeValue ComparisonOperator ComparisonOperator }
type ScanFilters ¶
type ScanFilters map[string]ScanFilter
func (ScanFilters) MarshalJSON ¶
func (s ScanFilters) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.