Documentation ¶
Index ¶
- func GetDynamoAttribute(value *dynamodb.AttributeValue, kind reflect.Kind) (data []byte, err error)
- func GetFieldDataType(record interface{}, jsonFieldName string) (kind reflect.Kind, err error)
- func GetRecordColumns(record interface{}) (columns []string)
- func SetData(record interface{}, data map[string]*[]byte) error
- func SetField(record interface{}, jsonFieldName string, data interface{}) error
- type DynamoRecord
- type Hello
- type JSON
- type JSONArray
- type JSONData
- type JSONObject
- type JSONTime
- type MySQLRecord
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDynamoAttribute ¶
func GetFieldDataType ¶
func GetRecordColumns ¶
func GetRecordColumns(record interface{}) (columns []string)
Types ¶
type DynamoRecord ¶
type DynamoRecord struct {
Record
}
func (DynamoRecord) GetConnection ¶
func (d DynamoRecord) GetConnection() connection.ConnectionInterface
func (DynamoRecord) GetDb ¶
func (d DynamoRecord) GetDb() *dynamodb.DynamoDB
type Hello ¶
type Hello struct { MySQLRecord ID int `json:"id"` Name string `json:"name"` }
Hello The record struct the json meta data is used for the name of the column in the db, as well as returning the data in the api response
type JSONObject ¶
type JSONObject map[string]interface{}
type JSONTime ¶
func (JSONTime) MarshalJSON ¶
type MySQLRecord ¶
type MySQLRecord struct {
Record
}
func (*MySQLRecord) GetConnection ¶
func (p *MySQLRecord) GetConnection() connection.ConnectionInterface
func (*MySQLRecord) GetDb ¶
func (p *MySQLRecord) GetDb() *sql.DB
Click to show internal directories.
Click to hide internal directories.