 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct {
	// Environment Name
	EnvName EnvName
	// Mock denotes whether or not the app is being "mocked" and
	// stubbed responses are being returned for various components
	// within
	Mock bool
	// Datastorer is an interface type meant to be the
	// persistence mechanism. It can be a
	// SQL database (PostgreSQL) or a mock database
	Datastorer datastore.Datastorer
	// Logger
	Logger zerolog.Logger
}
    Application contains the app configurations and Datastore
func NewApplication ¶ added in v0.13.0
func NewApplication(envName EnvName, datastorer datastore.Datastorer, logger zerolog.Logger) *Application
NewApplication initializes an Application struct with Mock set to false
func NewMockedApplication ¶ added in v0.16.0
func NewMockedApplication(envName EnvName, datastorer datastore.Datastorer, logger zerolog.Logger) *Application
NewMockedApplication initializes an Application struct with Mock set to true
type EnvName ¶
type EnvName uint8
EnvName is the environment Name int representation Using iota, 1 (Production) is the lowest, 2 (Staging) is 2nd lowest, and so on...
type GCPSeverityHook ¶ added in v0.18.0
type GCPSeverityHook struct{}
    The GCPSeverityHook struct satisfies the zerolog.Hook interface as it has the Run method defined with the appropriate parameters
 Click to show internal directories. 
   Click to hide internal directories.