handlers

package
v0.0.0-...-03d5641 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientError

func ClientError(status int, message string) (events.APIGatewayProxyResponse, error)

func GenerateShortURLID

func GenerateShortURLID(length int) string

func HandleSQSMessage

func HandleSQSMessage(ctx context.Context, message events.SQSMessage) error
func IsValidLink(u string) bool

func PostMessageToSlack

func PostMessageToSlack(ctx context.Context, message string) error

func ServerError

func ServerError(err error) (events.APIGatewayProxyResponse, error)

func SlackHandler

func SlackHandler(ctx context.Context, event json.RawMessage) error

Types

type DeleteFunctionHandler

type DeleteFunctionHandler struct {
	// contains filtered or unexported fields
}

func (*DeleteFunctionHandler) Delete

type GenerateLinkFunctionHandler

type GenerateLinkFunctionHandler struct {
	// contains filtered or unexported fields
}

type RedirectFunctionHandler

type RedirectFunctionHandler struct {
	// contains filtered or unexported fields
}

func (*RedirectFunctionHandler) Redirect

type RequestBody

type RequestBody struct {
	Long string `json:"long"`
}

type StatsFunctionHandler

type StatsFunctionHandler struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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