* TP-55555 | document client and kafka integration * TP-55555 | introduce service concept refactor code * TP-55555 | s3 and kafka producer integrated and tested * TP-55555 | s3 and kafka producer integrated and tested * TP-55555 | fixed kafka for subsequent request * TP-55555 | fixed kafka for subsequent request
16 lines
247 B
Go
16 lines
247 B
Go
package configs
|
|
|
|
import "github.com/spf13/viper"
|
|
|
|
type AwsConfig struct {
|
|
Region string
|
|
Bucket string
|
|
}
|
|
|
|
func NewAWSConfig() *AwsConfig {
|
|
return &AwsConfig{
|
|
Region: viper.GetString("aws.Region"),
|
|
Bucket: viper.GetString("aws.Bucket"),
|
|
}
|
|
}
|