Documentation
¶
Index ¶
- func AmqpChannel(url string) (ch *amqp.Channel)
- func FailOnError(err error, msg string)
- func LoadCert(path string) (cert []byte, err error)
- func ProfileCmd(profileName string, stats statsd.Statter)
- func RunForever(server *rpc.AmqpRPCServer)
- func RunUntilSignaled(logger *blog.AuditLogger, server *rpc.AmqpRPCServer, ...)
- type AppShell
- type Config
- type QueuePair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AmqpChannel ¶
AmqpChannel is the same as amqpConnect in boulder, but with even more aggressive error dropping
func FailOnError ¶
FailOnError exits and prints an error message if we encountered a problem
func ProfileCmd ¶
func RunForever ¶
func RunForever(server *rpc.AmqpRPCServer)
RunForever starts the server and wait around
func RunUntilSignaled ¶
func RunUntilSignaled(logger *blog.AuditLogger, server *rpc.AmqpRPCServer, closeChan chan *amqp.Error)
RunUntilSignaled starts the server and run until we get something on closeChan
Types ¶
type AppShell ¶
type AppShell struct {
Action func(Config)
// contains filtered or unexported fields
}
AppShell contains CLI Metadata
func NewAppShell ¶
NewAppShell creates a basic AppShell object containing CLI metadata
type Config ¶
type Config struct {
// General
AMQP struct {
Server string
RA QueuePair
VA QueuePair
SA QueuePair
CA QueuePair
}
WFE struct {
BaseURL string
ListenAddress string
}
CA ca.Config
SA struct {
DBDriver string
DBName string
}
Statsd struct {
Server string
Prefix string
}
Syslog struct {
Network string
Server string
Tag string
}
Mail struct {
Server string
Port string
Username string
Password string
}
SubscriberAgreementURL string
}
Config stores configuration parameters that applications will need. For simplicity, we just lump them all into one struct, and use encoding/json to read it from a file.
Note: NO DEFAULTS are provided.
Click to show internal directories.
Click to hide internal directories.