eg1

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: 11 Imported by: 0

README

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

This example was used as a precursor to eg2. It was used to generate a valid JWT token that is used in eg2.

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 always authenticates the request. One of its purposes is to log a valid JWT token that is used in eg2.

The test examples focus on exercising the error handler.

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