Versions in this module Expand all Collapse all v0 v0.2.0 Oct 9, 2019 v0.1.0 Oct 1, 2019 Changes in this version + const TypeDynamo + const TypeMemory + type Component struct + Dynamo *DynamoComponent + Memory *MemoryComponent + func NewComponent() *Component + func (c *Component) New(ctx context.Context, conf *Config) (domain.Store, error) + func (c *Component) Settings() *Config + type Config struct + Dynamo *DynamoConfig + Memory *MemoryConfig + Type string + func (*Config) Name() string + type DynamoComponent struct + DynamoDB *awscmp.DynamoDBComponent + func NewDynamoComponent() *DynamoComponent + func (c *DynamoComponent) New(ctx context.Context, conf *DynamoConfig) (domain.Store, error) + func (c *DynamoComponent) Settings() *DynamoConfig + type DynamoConf struct + func (*DynamoConf) Name() string + type DynamoConfig struct + AWS *DynamoConf + PartitionKey string + TTLKey string + TableName string + func (*DynamoConfig) Name() string + type DynamoDB struct + Client dynamodbiface.DynamoDBAPI + PartitionKeyName string + TTLKeyName string + TableName string + func (s *DynamoDB) Load(ctx context.Context, identifier string) ([]domain.Finding, error) + func (s *DynamoDB) Mark(ctx context.Context, identifier string) error + func (s *DynamoDB) Set(ctx context.Context, identifier string, findings []domain.Finding) error + type Memory struct + Map sync.Map + func (s *Memory) Load(ctx context.Context, identifier string) ([]domain.Finding, error) + func (s *Memory) Mark(ctx context.Context, identifier string) error + func (s *Memory) Set(ctx context.Context, identifier string, findings []domain.Finding) error + type MemoryComponent struct + func NewMemoryComponent() *MemoryComponent + func (*MemoryComponent) New(ctx context.Context, conf *MemoryConfig) (domain.Store, error) + func (*MemoryComponent) Settings() *MemoryConfig + type MemoryConfig struct + func (*MemoryConfig) Name() string