# README
mantil.go
mantil.go integrates Lambda function with API's in a Mantil project.
It is similar to the default AWS Go Lambda function handler. The main difference is that mantil.go handler mantil.LmabdaHandler accepts struct instance and exposes each exported method of that struct. Where the default implementation has a single function as an entrypoint.
Package is intended for usage inside Mantil project.
Package also provides simple key value store interface backed by a DynamoDB table. It manages that table as part of the Mantil project. It is created on demand and destroyed with the project.
# Functions
DynamodbTable creates a new dynamodb table (if it doesn't already exist) for use within a Mantil project.
FromContext returns the LambdaContext value stored in ctx, if any.
LambdaHandler is entrypoint for Mantil Lambda functions.
NewKV Creates new KV store.
NewLambdaInvoker builds helper for invoking lambda functions.
Publish publishes a payload to a given subject.
Resource takes a user-defined resource name and returns a ResourceInfo struct containing the actual name and tags that are used to create the resource.
S3Bucket creates a new S3 bucket (if it doesn't already exist) for use within a Mantil project.
SetLogger changes library logger.
# Constants
ApiErrorCodeHeader is the response header key for lambda error codes.
ApiErrorHeader is the response header key for lambda errors.
RequestType enum possible values:.
Configuration environment variables:.
Configuration environment variables:.
FindAll returns all items.
FindBeginsWith searches for items with keys beginning with a given prefix.
FindBetween searches for items with keys between the given keys.
FindGreaterThan searches for items with keys greater than the given key.
FindGreaterThanOrEqual searches for items with keys greater than or equal the given key.
FindLessThan searches for items with keys less than the given key.
FindLessThanOrEqual searches for items with keys less than or equal the given key.
KV primary and sort key names in DynamoDB table:.
RequestType enum possible values:.
KV primary and sort key names in DynamoDB table:.
RequestType enum possible values:.
RequestType enum possible values:.
RequestType enum possible values:.
RequestType enum possible values:.
# Structs
ErrItemNotFound is returned when item with that key is not found in key value store.
FindIterator is used to iterate over a collection of items returned by the Find and FindAll methods.
KV is key value store backed DynamoDB.
LambdaInvoker represents a helper for invoking lambda functions with cross-account support.
Request contains Lambda function request attributes.
RequestContext is provided as first context attribute to all api methods handled by mantil.go You can get it by mantil.FromContext().
ResourceInfo contains information about resources created through Mantil.
# Type aliases
FindOperator is a type representing search criteria for Find operations.
RequestType represents the type of the incoming Lambda request.