common

package
v0.0.0-...-0c3f707 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBooleanAttribute

func AddBooleanAttribute(item map[string]*dynamodb.AttributeValue, key string, value bool)

AddBooleanAttribute adds a new boolean attribute to the existing map

func AddListAttribute

func AddListAttribute(item map[string]*dynamodb.AttributeValue, key string, value []*dynamodb.AttributeValue)

AddListAttribute adds a list to the existing map

func AddStringAttribute

func AddStringAttribute(item map[string]*dynamodb.AttributeValue, key string, value string)

AddStringAttribute adds a new string attribute to the existing map

func AddStringSliceAttribute

func AddStringSliceAttribute(item map[string]*dynamodb.AttributeValue, key string, value []string)

AddStringSliceAttribute adds a new string slice attribute to the existing map

func AreClaGroupDocumentsEqual

func AreClaGroupDocumentsEqual(doc1, doc2 models.ClaGroupDocument) bool

func BuildCLAGroupDocumentModels

func BuildCLAGroupDocumentModels(dbDocumentModels []models2.DBProjectDocumentModel) []models.ClaGroupDocument

BuildCLAGroupDocumentModels builds response models based on the array of db models

func GetCurrentDocument

func GetCurrentDocument(ctx context.Context, docs []models.ClaGroupDocument) (models.ClaGroupDocument, error)

GetCurrentDocument returns the current document based on the version and date/time

Types

This section is empty.

Jump to

Keyboard shortcuts

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