go-rest-auth-base

command module
v0.0.0-...-9a089cb Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 9 Imported by: 0

README

Go REST Authentication Base (go-rest-auth-base)

Template for creating REST APIs in Go with built-in authentication middleware and logging capabilities. This project is a starting point for those who want to explore these concepts in Go. Remember, it's a template - use it to learn, but consider more robust solutions for production applications.

Features

  • API Key Authentication: Incoming requests are authenticated by validating the 'X-Api-Key' present in the request headers.
  • Rate Limiting: Option to limit the number of requests per API key for a given duration.
  • Thread-Safe API Key Mapping: Thread-safe map to store and manage API key objects.
  • Request Logging: Log details about each incoming request.

Usage

$ git clone https://github.com/fxnatic/go-rest-auth-base.git
$ cd go-rest-auth-base
$ go run main.go

License

This project is licensed under the MIT License.

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