Documentation ¶
Index ¶
- Variables
- func NewConsulPipeRouter(client ConsulClient, prefix, advertise string, userIDer UserIDer) app.PipeRouter
- func NewSQSControlRouter(config *aws.Config, userIDer UserIDer, prefix string) app.ControlRouter
- func NoopUserIDer(context.Context) (string, error)
- type CASCallback
- type ConsulClient
- type DynamoDBCollector
- type UserIDer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is returned by ConsulClient.Get ErrNotFound = fmt.Errorf("Not found") )
View Source
var ErrUserIDNotFound = fmt.Errorf("User ID not found")
ErrUserIDNotFound should be returned by a UserIDer when it fails to ID the user for a request.
Functions ¶
func NewConsulPipeRouter ¶
func NewConsulPipeRouter(client ConsulClient, prefix, advertise string, userIDer UserIDer) app.PipeRouter
NewConsulPipeRouter returns a new consul based router
func NewSQSControlRouter ¶
NewSQSControlRouter the harbinger of death
Types ¶
type CASCallback ¶
CASCallback is the type of the callback to CAS. If err is nil, out must be non-nil.
type ConsulClient ¶
type ConsulClient interface { Get(key string, out interface{}) error CAS(key string, out interface{}, f CASCallback) error WatchPrefix(prefix string, out interface{}, done chan struct{}, f func(string, interface{}) bool) }
ConsulClient is a high-level client for Consul, that exposes operations such as CAS and Watch which take callbacks. It also deals with serialisation.
func NewConsulClient ¶
func NewConsulClient(addr string) (ConsulClient, error)
NewConsulClient returns a new ConsulClient
type DynamoDBCollector ¶
DynamoDBCollector is a Collector which can also CreateTables
func NewDynamoDBCollector ¶
func NewDynamoDBCollector( userIDer UserIDer, dynamoDBConfig, s3Config *aws.Config, tableName, bucketName, natsHost string, ) (DynamoDBCollector, error)
NewDynamoDBCollector the reaper of souls https://github.com/aws/aws-sdk-go/wiki/common-examples
Click to show internal directories.
Click to hide internal directories.