Documentation
¶
Index ¶
- func GetLogger(env string, level zapcore.Level, serviceName string) *zap.SugaredLogger
- func NewLogger(env *Env) *zap.SugaredLogger
- func NewStatsd(env *Env) (statsd.ClientInterface, error)
- type AuthConfig
- type ConfigurationManager
- type CsvConfig
- type DatahubAuthConfig
- type DecodeConfig
- type DeliverOnceConfig
- type Env
- type FlatFileConfig
- type FlatFileField
- type LocalFileConfig
- type ParquetConfig
- type PropertiesMapping
- type State
- type StorageBackend
- type StorageConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
func NewLogger(env *Env) *zap.SugaredLogger
Types ¶
type AuthConfig ¶
type ConfigurationManager ¶
type ConfigurationManager struct {
Datalayer *StorageConfig
State State
TokenProviders *security.TokenProviders
// contains filtered or unexported fields
}
func NewConfigurationManager ¶
func NewConfigurationManager(lc fx.Lifecycle, env *Env, providers *security.TokenProviders) *ConfigurationManager
func (*ConfigurationManager) Init ¶
func (conf *ConfigurationManager) Init()
func (*ConfigurationManager) Run ¶
func (conf *ConfigurationManager) Run()
type DatahubAuthConfig ¶
type DecodeConfig ¶
type DecodeConfig struct {
Namespaces map[string]string `json:"namespaces"`
PropertyPrefixes map[string]string `json:"propertyPrefixes"`
Refs []string `json:"refs"`
IdProperty string `json:"idProperty"`
DefaultNamespace string `json:"defaultNamespace"`
IgnoreColumns []string `json:"ignoreColumns"`
ColumnMappings map[string]string `json:"columnMappings"`
ColumnTypes map[string]string `json:"columnTypes"`
ListValueColumns map[string]string `json:"listValueColumns"`
Defaults map[string]string `json:"defaults"`
ConcatColumns map[string][]string `json:"columnConcats"`
}
type DeliverOnceConfig ¶
type Env ¶
type Env struct {
Logger *zap.SugaredLogger
Env string
Port string
ConfigLocation string
RefreshInterval string
ServiceName string
FullsyncChunkSize int64
FullsyncTempFolder string
Auth *AuthConfig
}
type FlatFileConfig ¶
type FlatFileField ¶
type LocalFileConfig ¶
type ParquetConfig ¶
type PropertiesMapping ¶
type PropertiesMapping struct {
Bucket *string `json:"bucket,omitempty"`
Region *string `json:"region,omitempty"`
AuthType *string `json:"authType,omitempty"`
ResourceName *string `json:"resourceName,omitempty"`
CustomResourcePath *bool `json:"customResourcePath,omitempty"`
RootFolder *string `json:"rootFolder,omitempty"`
FolderStructure *string `json:"folderStructure,omitempty"`
FilePrefix *string `json:"filePrefix,omitempty"`
Endpoint string `json:"endpoint"`
Key *string `json:"key,omitempty"`
Secret *string `json:"secret,omitempty"` //Note, need to be called secret to be injected in injectSecrets in manager.go
}
type StorageBackend ¶
type StorageBackend struct {
Dataset string `json:"dataset"`
StorageType string `json:"storageType"`
StripProps bool `json:"stripProps"`
ResolveNamespace bool `json:"resolveNamespace"`
StoreDeleted bool `json:"storeDeleted"`
AthenaCompatible bool `json:"athenaCompatible"`
CsvConfig *CsvConfig `json:"csv"`
FlatFileConfig *FlatFileConfig `json:"flatFile"`
ParquetConfig *ParquetConfig `json:"parquet"`
Properties PropertiesMapping `json:"props"`
DecodeConfig *DecodeConfig `json:"decode"`
LocalFileConfig *LocalFileConfig `json:"localfileconfig"`
Timezone string `json:"timezone"`
OrderBy [][]int `json:"orderBy"`
DeliverOnceConfig DeliverOnceConfig `json:"deliverOnceConfig"`
OrderType string `json:"orderType"`
}
type StorageConfig ¶
type StorageConfig struct {
Id string `json:"id"`
DatahubAuthConfig DatahubAuthConfig `json:"datahubAuthConfig"`
StorageBackends []StorageBackend `json:"storageBackends"`
StorageMapping map[string]StorageBackend `json:"-"` //ignore field when marshaling/unmarshaling
}
Click to show internal directories.
Click to hide internal directories.