{"modulePath":"github.com/theory-cloud/tabletheory","version":"v1.10.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Types\n\n```go\ntype Event struct {\n\tData      map[string]any `json:\"data\"`\n\tPartnerID string         `json:\"partnerId\"`\n\tAction    string         `json:\"action\"`\n}\n```\nEvent structure for Lambda input\n\n```go\ntype Payment struct {\n\tCreatedAt time.Time `dynamodb:\"created_at\"`\n\tUpdatedAt time.Time `dynamodb:\"updated_at\"`\n\tID        string    `dynamodb:\"id,hash\"`\n\tPartnerID string    `dynamodb:\"partner_id\" index:\"partner-index,hash\"`\n\tCurrency  string    `dynamodb:\"currency\"`\n\tStatus    string    `dynamodb:\"status\"`\n\tAmount    int64     `dynamodb:\"amount\"`\n}\n```\nPayment model\n\n```go\ntype Response struct {\n\tData    any    `json:\"data,omitempty\"`\n\tError   string `json:\"error,omitempty\"`\n\tSuccess bool   `json:\"success\"`\n}\n```\nResponse structure for Lambda output\n\n","path":"github.com/theory-cloud/tabletheory/examples/lambda","name":"main","synopsis":"","isRedistributable":true}
