Documentation ¶
Index ¶
- func AwsSetQueueTimeout(svc *sqs.Client, envUrl *url.URL, queueUrl *string) error
- func GetTimeoutFromUrl(qUrl *url.URL) (string, error)
- func NewAwsConfig() aws.Config
- func ResetMqInMemory()
- type AppResBucket
- type AppResDir
- type AppResDynamoDb
- func (ddb *AppResDynamoDb) CreateTable(input *dynamodb.CreateTableInput) error
- func (ddb *AppResDynamoDb) Get(tableName string, key map[string]string) (interface{}, error)
- func (ddb *AppResDynamoDb) Init() error
- func (ddb *AppResDynamoDb) ListTables() ([]string, error)
- func (ddb *AppResDynamoDb) Put(tableName string, item interface{}) error
- type AppResFS
- type AppResFileSystem
- type AppResKeyVal
- type AppResQueue
- type AppResQueueSqs
- func (q *AppResQueueSqs) Commit() error
- func (q *AppResQueueSqs) CreateQueue()
- func (q *AppResQueueSqs) GetQueueUrl(queueName string) (*sqs.GetQueueUrlOutput, error)
- func (q *AppResQueueSqs) Init() error
- func (q *AppResQueueSqs) Name() string
- func (q *AppResQueueSqs) Retrieve() (*string, error)
- func (q *AppResQueueSqs) Send(Message string) error
- type AppResRedis
- type AppResS3
- type AppResources
- func (ar *AppResources) GetDDb(name string) (*AppResDynamoDb, error)
- func (ar *AppResources) GetFileSystem(name string) (*AppResFileSystem, error)
- func (ar *AppResources) GetKeyVal(name string) (*AppResKeyVal, error)
- func (ar *AppResources) GetQueue(name string) (*AppResQueue, error)
- func (ar *AppResources) Init()
- func (ar *AppResources) LoadAppResources(gsbEnvVars []GsbEnvVar)
- type Envelope
- type EnvelopeError
- type GsbEnvVar
- type Handler
- type HandlerFn
- type HandlerState
- type Host
- func (h *Host) AddHandler(name string, f HandlerFn)
- func (h *Host) Init()
- func (h *Host) InitAuditQueue()
- func (h *Host) InitErrorQueue()
- func (h *Host) InitMq()
- func (h *Host) MqCommit() error
- func (h *Host) MqRetrieve() *Envelope
- func (h *Host) ProcessError(env *Envelope, err error)
- func (h *Host) ProcessHandlers(env *Envelope) error
- func (h *Host) ProcessMessage(env *Envelope)
- func (h *Host) Run()
- func (h *Host) SendEnvelope(q AppResQueue, env Envelope) error
- func (h *Host) SendMessage(name string, payload string) error
- func (h *Host) SendMessage2(q AppResQueue, name string, payload string) error
- func (h *Host) SendToAudit(env Envelope)
- func (h *Host) Tick()
- type MessageSender
- type Monitor
- type MonitorData
- type MonitorDir
- type MonitorQueue
- type Monitors
- type Mq
- type MqAws
- type MqBeanstalk
- type MqInMemory
- type Queue
- type QueueBeanstalk
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwsSetQueueTimeout ¶ added in v0.0.5
func NewAwsConfig ¶ added in v0.0.3
func ResetMqInMemory ¶
func ResetMqInMemory()
Types ¶
type AppResBucket ¶ added in v0.0.15
type AppResBucket struct {
// contains filtered or unexported fields
}
func NewAppResBucket ¶ added in v0.0.15
func NewAppResBucket(url *url.URL) *AppResBucket
func (*AppResBucket) Del ¶ added in v0.0.15
func (b *AppResBucket) Del(name string) error
func (*AppResBucket) Exists ¶ added in v0.0.15
func (b *AppResBucket) Exists(name string) (bool, error)
func (*AppResBucket) Get ¶ added in v0.0.15
func (b *AppResBucket) Get(name string) (interface{}, error)
func (*AppResBucket) Init ¶ added in v0.0.15
func (b *AppResBucket) Init() error
func (*AppResBucket) Put ¶ added in v0.0.15
func (b *AppResBucket) Put(name string, item interface{}) error
type AppResDir ¶
type AppResDir struct {
// contains filtered or unexported fields
}
func NewAppResDir ¶
type AppResDynamoDb ¶
type AppResDynamoDb struct {
// contains filtered or unexported fields
}
func NewAppResDynamoDb ¶
func NewAppResDynamoDb(url *url.URL) *AppResDynamoDb
func (*AppResDynamoDb) CreateTable ¶ added in v0.0.5
func (ddb *AppResDynamoDb) CreateTable(input *dynamodb.CreateTableInput) error
func (*AppResDynamoDb) Get ¶
func (ddb *AppResDynamoDb) Get(tableName string, key map[string]string) (interface{}, error)
func (*AppResDynamoDb) Init ¶
func (ddb *AppResDynamoDb) Init() error
func (*AppResDynamoDb) ListTables ¶ added in v0.0.7
func (ddb *AppResDynamoDb) ListTables() ([]string, error)
func (*AppResDynamoDb) Put ¶
func (ddb *AppResDynamoDb) Put(tableName string, item interface{}) error
type AppResFS ¶
type AppResFS struct {
// contains filtered or unexported fields
}
func NewAppResFS ¶
type AppResFileSystem ¶
type AppResKeyVal ¶
type AppResQueue ¶
type AppResQueueSqs ¶ added in v0.0.4
type AppResQueueSqs struct {
// contains filtered or unexported fields
}
func NewAppResQueueSqs ¶ added in v0.0.4
func NewAppResQueueSqs(url *url.URL) *AppResQueueSqs
func (*AppResQueueSqs) Commit ¶ added in v0.0.4
func (q *AppResQueueSqs) Commit() error
func (*AppResQueueSqs) CreateQueue ¶ added in v0.0.5
func (q *AppResQueueSqs) CreateQueue()
func (*AppResQueueSqs) GetQueueUrl ¶ added in v0.0.4
func (q *AppResQueueSqs) GetQueueUrl(queueName string) (*sqs.GetQueueUrlOutput, error)
func (*AppResQueueSqs) Init ¶ added in v0.0.4
func (q *AppResQueueSqs) Init() error
func (*AppResQueueSqs) Name ¶ added in v0.0.4
func (q *AppResQueueSqs) Name() string
func (*AppResQueueSqs) Retrieve ¶ added in v0.0.4
func (q *AppResQueueSqs) Retrieve() (*string, error)
func (*AppResQueueSqs) Send ¶ added in v0.0.4
func (q *AppResQueueSqs) Send(Message string) error
type AppResRedis ¶
type AppResRedis struct {
// contains filtered or unexported fields
}
func NewAppResRedis ¶
func NewAppResRedis(url *url.URL) *AppResRedis
func (*AppResRedis) Del ¶
func (r *AppResRedis) Del(key string) error
func (*AppResRedis) Exists ¶ added in v0.0.10
func (r *AppResRedis) Exists(name string) (bool, error)
func (*AppResRedis) Get ¶
func (r *AppResRedis) Get(key string) (interface{}, error)
func (*AppResRedis) Init ¶
func (r *AppResRedis) Init() error
func (*AppResRedis) Put ¶
func (r *AppResRedis) Put(key string, item interface{}) error
type AppResS3 ¶
type AppResS3 struct {
// contains filtered or unexported fields
}
func NewAppResS3 ¶
type AppResources ¶
type AppResources struct {
// contains filtered or unexported fields
}
func NewAppResources ¶
func NewAppResources() *AppResources
func (*AppResources) GetDDb ¶ added in v0.0.12
func (ar *AppResources) GetDDb(name string) (*AppResDynamoDb, error)
func (*AppResources) GetFileSystem ¶ added in v0.0.12
func (ar *AppResources) GetFileSystem(name string) (*AppResFileSystem, error)
func (*AppResources) GetKeyVal ¶ added in v0.0.12
func (ar *AppResources) GetKeyVal(name string) (*AppResKeyVal, error)
func (*AppResources) GetQueue ¶ added in v0.0.12
func (ar *AppResources) GetQueue(name string) (*AppResQueue, error)
func (*AppResources) Init ¶
func (ar *AppResources) Init()
func (*AppResources) LoadAppResources ¶ added in v0.0.2
func (ar *AppResources) LoadAppResources(gsbEnvVars []GsbEnvVar)
type Envelope ¶
type Envelope struct { Identifier string Name string Msg string OriginalQueueName string Errors []EnvelopeError }
func NewEnvelope ¶
func UnmarshalEnvelope ¶
type EnvelopeError ¶ added in v0.0.5
type GsbEnvVar ¶
type GsbEnvVar struct {
// contains filtered or unexported fields
}
func LoadGsbEnvVars ¶ added in v0.0.2
type HandlerFn ¶
type HandlerFn func(*HandlerState, string) error
type HandlerState ¶
type HandlerState struct { AppResources *AppResources Keys map[string]string // contains filtered or unexported fields }
func NewHandlerState ¶
func NewHandlerState(host *Host, appResources *AppResources) *HandlerState
type Host ¶
type Host struct { Name string Mq Mq MqUrl *url.URL LocalSendQ Queue AuditQ Queue ErrorQ Queue Handlers []Handler // contains filtered or unexported fields }
func (*Host) AddHandler ¶
func (*Host) InitAuditQueue ¶ added in v0.0.5
func (h *Host) InitAuditQueue()
func (*Host) InitErrorQueue ¶
func (h *Host) InitErrorQueue()
func (*Host) MqRetrieve ¶
func (*Host) ProcessError ¶
func (*Host) ProcessHandlers ¶
func (*Host) ProcessMessage ¶
func (*Host) SendEnvelope ¶ added in v0.0.16
func (h *Host) SendEnvelope(q AppResQueue, env Envelope) error
func (*Host) SendMessage ¶ added in v0.0.2
func (*Host) SendMessage2 ¶ added in v0.0.16
func (h *Host) SendMessage2(q AppResQueue, name string, payload string) error
func (*Host) SendToAudit ¶ added in v0.0.5
type MessageSender ¶ added in v0.0.2
type Monitor ¶ added in v0.0.2
type Monitor interface { Init() error Next() (*MonitorData, error) Commit() error }
type MonitorData ¶ added in v0.0.2
type MonitorDir ¶ added in v0.0.2
type MonitorDir struct {
// contains filtered or unexported fields
}
func NewMonitorDir ¶ added in v0.0.2
func NewMonitorDir(url *url.URL) *MonitorDir
func (*MonitorDir) Commit ¶ added in v0.0.2
func (dir *MonitorDir) Commit() error
func (*MonitorDir) Init ¶ added in v0.0.2
func (dir *MonitorDir) Init() error
func (*MonitorDir) Next ¶ added in v0.0.2
func (dir *MonitorDir) Next() (*MonitorData, error)
type MonitorQueue ¶ added in v0.0.13
type MonitorQueue struct { Q Queue // contains filtered or unexported fields }
func NewMonitorQueue ¶ added in v0.0.13
func NewMonitorQueue(url *url.URL) *MonitorQueue
func (*MonitorQueue) Commit ¶ added in v0.0.13
func (q *MonitorQueue) Commit() error
func (*MonitorQueue) Init ¶ added in v0.0.13
func (q *MonitorQueue) Init() error
func (*MonitorQueue) Next ¶ added in v0.0.13
func (q *MonitorQueue) Next() (*MonitorData, error)
type Monitors ¶ added in v0.0.2
type Monitors struct {
// contains filtered or unexported fields
}
func NewMonitors ¶ added in v0.0.2
func NewMonitors() *Monitors
func (*Monitors) Init ¶ added in v0.0.2
func (m *Monitors) Init(messageSender MessageSender)
func (*Monitors) LoadMonitors ¶ added in v0.0.2
type MqBeanstalk ¶
type MqBeanstalk struct {
// contains filtered or unexported fields
}
func NewMqBeanstalk ¶
func NewMqBeanstalk(url *url.URL) *MqBeanstalk
func (*MqBeanstalk) Commit ¶
func (mq *MqBeanstalk) Commit() error
func (*MqBeanstalk) Init ¶
func (mq *MqBeanstalk) Init() error
func (*MqBeanstalk) Retrieve ¶
func (mq *MqBeanstalk) Retrieve() (*string, error)
type MqInMemory ¶
type MqInMemory struct { List []string // contains filtered or unexported fields }
func NewMqInMemory ¶
func NewMqInMemory(url *url.URL) *MqInMemory
func NewMqInMemoryFromString ¶
func NewMqInMemoryFromString(urlString string) *MqInMemory
func (*MqInMemory) Commit ¶
func (mq *MqInMemory) Commit() error
func (*MqInMemory) Init ¶
func (mq *MqInMemory) Init() error
func (*MqInMemory) Move ¶
func (mq *MqInMemory) Move(fromS string, toS string)
func (*MqInMemory) Name ¶
func (mq *MqInMemory) Name() string
func (*MqInMemory) Retrieve ¶
func (mq *MqInMemory) Retrieve() (*string, error)
func (*MqInMemory) Send ¶
func (mq *MqInMemory) Send(payload string) error
type Queue ¶
type QueueBeanstalk ¶
type QueueBeanstalk struct {
// contains filtered or unexported fields
}
func NewAppResQueueBeanstalk ¶
func NewAppResQueueBeanstalk(url *url.URL) *QueueBeanstalk
func (*QueueBeanstalk) Commit ¶
func (q *QueueBeanstalk) Commit() error
func (*QueueBeanstalk) Init ¶
func (q *QueueBeanstalk) Init() error
func (*QueueBeanstalk) Name ¶
func (q *QueueBeanstalk) Name() string
func (*QueueBeanstalk) Retrieve ¶
func (q *QueueBeanstalk) Retrieve() (*string, error)
func (*QueueBeanstalk) Send ¶
func (q *QueueBeanstalk) Send(payload string) error
Source Files ¶
- appres-aws.go
- appres-bucket.go
- appres-dir.go
- appres-dynamodb.go
- appres-fs.go
- appres-queue-beanstalk.go
- appres-queue-sqs.go
- appres-queue.go
- appres-redis.go
- appres-s3.go
- appres.go
- envelope.go
- gsb.go
- gsbenvvar.go
- handler.go
- monitor-dir.go
- monitor-queue.go
- monitor.go
- mq-aws.go
- mq-beanstalk.go
- mq-in-memory.go
- mq.go
Click to show internal directories.
Click to hide internal directories.