lambda_utils_go

package module
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Unlicense Imports: 18 Imported by: 0

README

lambda-utils-go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyJsonPatch added in v1.0.9

func ApplyJsonPatch(original interface{}, patchBody string, result interface{}) error

func GetSNSStringAttribute

func GetSNSStringAttribute(attribute interface{}) (string, error)

func GetSSMParameter

func GetSSMParameter(env, name string, decryption bool) (*string, error)

func HTTPErrorResponse added in v1.0.3

func HTTPErrorResponse(status int, request *events.APIGatewayProxyRequest, err error) *events.APIGatewayProxyResponse

func HTTPResponse added in v1.0.8

func HTTPResponse(status int, request *events.APIGatewayProxyRequest, body interface{}) *events.APIGatewayProxyResponse

func MongoUpdateFromJSONPatch added in v1.0.10

func MongoUpdateFromJSONPatch(patches *[]JSONPatch, now *time.Time) (bson.A, error)

func NewMongoAdminClient added in v1.0.1

func NewMongoAdminClient(ctx context.Context, env string) (*mongo.Client, *string, error)

func NewPusherClient added in v1.0.12

func NewPusherClient(stage *string) (*pusher.Client, error)

func RandomString added in v1.0.15

func RandomString(size int, small, cap, digit bool) string

Types

type JSONPatch added in v1.0.10

type JSONPatch struct {
	OP    string      `json:"op"`
	Path  string      `json:"path"`
	Value interface{} `json:"value"`
}

Jump to

Keyboard shortcuts

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