gateway

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedHeaders

func AllowedHeaders(headers []string) func(s string) (string, bool)

func GetHeaders

func GetHeaders(ctx context.Context, key string) ([]string, error)

func Logger

func Logger(logger zerolog.Logger, handler http.Handler) http.Handler

func RunServer

func RunServer(srvic *service.CoreService, errs chan error)

Types

type ResponseRecorder

type ResponseRecorder struct {
	http.ResponseWriter
	StatusCode int
	Body       []byte
}

Jump to

Keyboard shortcuts

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