Documentation
¶
Index ¶
- func AwaitTermination(logger log.Logger, terminationListener chan error)
- func NewInternalClient(logger log.Logger, config *ClientConfig, name string) *http.Client
- func NewTerminationListener() chan error
- type ACHGatewayConfig
- type BindAddress
- type BucketConfig
- type ClientConfig
- type Config
- type DisplayConfig
- type EncryptionConfig
- type Environment
- type FilesystemConfig
- type GPG
- type GPGFile
- type GlobalConfig
- type HTTPConfig
- type HelpfulLinks
- type MaskingConfig
- type ServerConfig
- type Source
- type Sources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitTermination ¶
func NewInternalClient ¶
func NewTerminationListener ¶
func NewTerminationListener() chan error
Types ¶
type ACHGatewayConfig ¶
type BindAddress ¶
type BindAddress struct {
Address string
}
BindAddress specifies where the http server should bind to.
type BucketConfig ¶
type ClientConfig ¶
type Config ¶
type Config struct {
Servers ServerConfig
Clients *ClientConfig
Display DisplayConfig
Sources Sources
}
Config defines all the configuration for the app
type DisplayConfig ¶
type DisplayConfig struct {
Format string // e.g. "human-readable"
Masking MaskingConfig
HelpfulLinks HelpfulLinks
}
type EncryptionConfig ¶
type EncryptionConfig struct {
GPG *GPG
}
type Environment ¶
type Environment struct {
Logger log.Logger
Config *Config
TimeService stime.TimeService
InternalClient *http.Client
PublicRouter *mux.Router
Shutdown func()
}
Environment - Contains everything thats been instantiated for this service.
func NewEnvironment ¶
func NewEnvironment(env *Environment) (*Environment, error)
NewEnvironment - Generates a new default environment. Overrides can be specified via configs.
func (*Environment) RunServers ¶
func (env *Environment) RunServers(terminationListener chan error) func()
RunServers - Boots up all the servers and awaits till they are stopped.
type FilesystemConfig ¶
type FilesystemConfig struct {
Paths []string
}
type GlobalConfig ¶
type GlobalConfig struct {
ACHWebViewer Config
}
type HTTPConfig ¶
type HTTPConfig struct {
Bind BindAddress
BasePath string
}
HTTPConfig configuration for running an http server
type HelpfulLinks ¶
type MaskingConfig ¶
type ServerConfig ¶
type ServerConfig struct {
Public HTTPConfig
Admin HTTPConfig
}
ServerConfig - Groups all the http configs for the servers and ports that get opened.
type Source ¶
type Source struct {
ID string
ACHGateway *ACHGatewayConfig
Bucket *BucketConfig
Filesystem *FilesystemConfig
Encryption *EncryptionConfig
}
Click to show internal directories.
Click to hide internal directories.