Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatasetClient ¶
type DatasetClient interface { GetInstance(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, instanceID, ifMatch string) (m dataset.Instance, eTag string, err error) PostInstanceDimensions(ctx context.Context, serviceAuthToken, instanceID string, data dataset.OptionPost, ifMatch string) (eTag string, err error) PutInstanceData(ctx context.Context, serviceAuthToken, instanceID string, data dataset.JobInstance, ifMatch string) (eTag string, err error) }
DatasetClient is an interface to represent methods called to action upon Dataset REST interface
type DimensionExtracted ¶
type DimensionExtracted struct { FileURL string `avro:"file_url"` InstanceID string `avro:"instance_id"` }
DimensionExtracted represents a kafka avro model for a dimension extracted file for an instance
type InputFileAvailable ¶
type InputFileAvailable struct { FileURL string `avro:"file_url"` InstanceID string `avro:"instance_id"` }
InputFileAvailable represents a kafka avro model for an available input file fo an instance
type KafkaProducer ¶
type KafkaProducer interface { Channels() *kafka.ProducerChannels Close(ctx context.Context) (err error) }
KafkaProducer is an interface to represent methods called to action upon Kafka to produce messages
type S3Client ¶
type S3Client interface { Get(key string) (io.ReadCloser, *int64, error) GetWithPSK(key string, psk []byte) (io.ReadCloser, *int64, error) Checker(ctx context.Context, state *healthcheck.CheckState) error }
S3Client is an interface to represent methods called to action upon AWS S3
type Service ¶
type Service struct { AuthToken string DimensionExtractedProducer KafkaProducer EncryptionDisabled bool DatasetClient DatasetClient AwsSession *session.Session S3Clients map[string]S3Client VaultClient VaultClient VaultPath string }
Service handles incoming messages.
type VaultClient ¶
VaultClient is an interface to represent methods called to action upon Vault
Click to show internal directories.
Click to hide internal directories.