README ¶
porto
Go packages
Requirements
- GoLang 1.17+
Contribution
make all
complete build and testmake test
run the testsmake testshort
runs the tests skipping the end-to-end tests and the code coverage reportingmake covtest
runs the tests with end-to-end and the code coverage reportingmake coverage
view the code coverage results from the last make test run.make generate
runs go generate to update any code generated filesmake fmt
runs go fmt on the project.make lint
runs the go linter on the project.
run make all
once, then run make build
or make test
as needed.
First run:
make all
Tests:
make test
Optionally run golang race detector with test targets by setting RACE flag:
make test RACE=true
Review coverage report:
make covtest coverage
Directories ¶
Path | Synopsis |
---|---|
credentials
Package credentials implements gRPC credential interface with etcd specific logic.
|
Package credentials implements gRPC credential interface with etcd specific logic. |
pkg
|
|
tasks
Package tasks is task scheduling package which lets you run Go functions periodically at pre-determined interval using a simple, human-friendly syntax.
|
Package tasks is task scheduling package which lets you run Go functions periodically at pre-determined interval using a simple, human-friendly syntax. |
authz
Package authz provides an implemention of http authorization where specific URI (or URI's and their children) are allowed access by a set of roles
|
Package authz provides an implemention of http authorization where specific URI (or URI's and their children) are allowed access by a set of roles |
tests
|
|
xhttp
|
|
identity
Package identity extracts the callers contextual identity information from the HTTP/TLS requests and exposes them for access via the generalized go context model.
|
Package identity extracts the callers contextual identity information from the HTTP/TLS requests and exposes them for access via the generalized go context model. |
marshal
Package marshal provides some common handlers for encoding or decoding json
|
Package marshal provides some common handlers for encoding or decoding json |
Click to show internal directories.
Click to hide internal directories.