core

package
v0.0.0-...-dc52cdd Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT-0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DYNAMO_STREAM_EVENT_NAME_CREATE string = "INSERT"
View Source
var DYNAMO_STREAM_EVENT_NAME_DELETE string = "REMOVE"
View Source
var DYNAMO_STREAM_EVENT_NAME_UPDATE string = "MODIFY"

Functions

func Chunk

func Chunk(array []interface{}, chunkSize int) [][]interface{}

func GeneratUniqueId

func GeneratUniqueId() string

Generats a usinque ID based timestamp

func Hash

func Hash(s string) uint32

Types

type DynamoRecord

type DynamoRecord struct {
	Code     string `json:"code"`
	ItemType string `json:"itemType"`
}

type ResError

type ResError struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
}

type User

type User struct {
	Sub      string `json:"sub"`
	Email    string `json:"email"`
	Username string `json:"username"`
}

Jump to

Keyboard shortcuts

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