fuel

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: BSD-2-Clause, MIT Imports: 7 Imported by: 0

README

fuel

import "github.com/shuymn/fuel

License

Most of the files are modified versions of guregu/dynamo, so they are dual-licensed under the MIT license and the BSD license of guregu/dynamo.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalItem

func MarshalItem(v interface{}) (map[string]types.AttributeValue, error)

MarshalItem converts the given struct into a DynamoDB item

func Unmarshal

func Unmarshal(av types.AttributeValue, out interface{}) error

func UnmarshalAppend

func UnmarshalAppend(item map[string]types.AttributeValue, out interface{}) error

func UnmarshalItem

func UnmarshalItem(item map[string]types.AttributeValue, out interface{}) error

Types

type ItemMarshaler

type ItemMarshaler interface {
	MarshalDynamoDBItem() (map[string]types.AttributeValue, error)
}

ItemMarshaler is the interface implemented by objects that can marshal themselves into an Item (a map of strings to AttributeValues)

type ItemUnmarshaler

type ItemUnmarshaler interface {
	UnmarshalDynamoDBItem(item map[string]types.AttributeValue) error
}

ItemUnmarshaler is the interface implemented by objects that can unmarshal an Item (a map of strings to AttributeValues) into themselves

type Marshaler

type Marshaler interface {
	MarshalDynamoDB() (types.AttributeValue, error)
}

Marshaler is the interface implemented by objects that can marshal themselves into an AttributeValue

type Unmarshaler

type Unmarshaler interface {
	UnmarshalDynamoDB(av types.AttributeValue) error
}

Unmarshaler is the interface implemented by objects that can unmarshal an AttributeValue into themselves

Jump to

Keyboard shortcuts

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