Categorygithub.com/axamon/token
modulepackage
1.4.1
Repository: https://github.com/axamon/token.git
Documentation: pkg.go.dev

# README

token

Build Status Maintainability Test Coverage

checks on DB and json file for credentials, if found returns a pseudo UDDI token.

# Functions

CheckCredentialsDBCtx looks for credentials in the DB.
CheckLocalCredentials verifies username and passwords on local json file.
GenerateCtx generates a token.

# Constants

QueryCredentials is a query that executed on DB returns true if both user and password are found in a record.

# Variables

CredentialsJSONFile is the json file containing credentials.

# Structs

Credentials is the type used to pass username and password around.

# Type aliases

CtxINTERFACE allows to inform all go routines.