go-lambda-check

command module
v0.0.0-...-dc6e573 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

README

Health check Lambda

check healthy server by Lambda function

Package used in project icap-client ( https://github.com/k8-proxy/icap-client )

operation first send request with pdf file to ICAP server

"icap://" + host" + port + service

read response from ICAP server if successfully return pdf file with string "Glasswall Processed" will be healthy server

**Requirement**

  1. Package build

    1. GOOS=linux GOARCH=amd64 go build -o main
    2. zip main.zip main
    3. upload main.zip to Lambda Function code
    **Running the tests**

    on Lambda create configure test event

    with

    { "host": "34.242.219.224" }

    host is the server you want to check health

Kiku

return json exitcode 0 it's successful and healthy server

exitcode 1 it's failed and not healthy server

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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