controller

module
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0

README

controller

Common controller lib. Provides components shared by application controllers.

Requires: Go 1.13+ and Go Modules


Logging

Logging can be configured using environment variables:

  • LOG_DEVELOPMENT: Development mode with human readable logs and (default) verbosity=4.
  • LOG_LEVEL: Set the verbosity.

Verbosity:

  • Info(3) used for Info logging.
  • Info(4) used for Debug logging.
  • Info(5) used for Debug+ high rate events.

Package:

  • filebacked:
    • Info(5): file create,delete
    • Info(6): file read,write.
  • inventory:
    • container:
      • Info(3): reconciler lifecycle.
      • Error(4): channel send failed.
    • model:
      • Info(3):
        • database: lifecycle.
        • journal: journal and watch lifecycle.
        • model: insert,update,delete.
      • Info(4):
        • client: (db) transaction lifecycle;model get,list.
        • journal: event staging.
        • watch: lifecycle.
      • Info(5):
        • watch: event sent,received.
        • table: SQL statements.
    • web:
      • Info(3):
        • watch: lifecycle.
      • Info(4):
        • watch: event sent,received.
    • ref:
      • Info(3): reference mapping added,deleted.
      • Info(4): reference lookup and reconcile events queued.

Directories

Path Synopsis
pkg
cmd
Provides integration testing.
Provides integration testing.
cmd/inventory
Web stack integration test.
Web stack integration test.
error
The error package provides practical wrap/unwrap features.
The error package provides practical wrap/unwrap features.
filebacked
Provides file-backed collections.
Provides file-backed collections.
inventory/container
A collection of models.
A collection of models.
inventory/model
The `model` package essentially provides a lightweight object relational model (ORM) based on sqlite3 intended to support the needs of the `container` package.
The `model` package essentially provides a lightweight object relational model (ORM) based on sqlite3 intended to support the needs of the `container` package.
ref

Jump to

Keyboard shortcuts

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