infrastructure

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContextWithRequestId

func CreateContextWithRequestId(ctx context.Context, r string) context.Context

func ExtractHttpRequestIdFromContext

func ExtractHttpRequestIdFromContext(ctx context.Context) string

func ExtractLambdaRequestIdFromContext

func ExtractLambdaRequestIdFromContext(ctx context.Context) string

Types

type HttpClient

type HttpClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type Logger

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

func CreateLogger

func CreateLogger(lambdaReqId string, httpReqId string) *Logger

func (*Logger) Error

func (l *Logger) Error(msg string)

func (*Logger) Info

func (l *Logger) Info(msg string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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