func()

in service/s3/s3.go [33:47]


func (s S3Store) Get(key string) ([]byte, error) {
	log.Printf("fetching from S3: %s", key)

	resp, err := s.client.GetObject(context.TODO(), &awsS3.GetObjectInput{
		Bucket: &s.bucket,
		Key:    &key,
	})

	if err != nil {
		return nil, err
	}

	defer resp.Body.Close()
	return io.ReadAll(resp.Body)
}