eg2

command
v0.0.0-...-cbbd1a2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

This exemplifies the use of an adapter to transform a servicce flow into a Gin HandlerFunc.

The service flow is a simplistic login function, but it is used here as a regular service flow, not a login function.

The dummyAuthenticator function just checks if the JWT token in the HTTP header is valid.

The test examples send valid or invalid authentication tokens as headers.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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