Documentation ¶
Overview ¶
Package backendconfig is a generated GoMock package.
Index ¶
- Constants
- Variables
- func GetConfigBackendURL() string
- func Init()
- func Setup(configEnvHandler types.ConfigEnvI) (err error)
- type BackendConfig
- type ConfigT
- type ConnectionFlags
- type DataRetention
- type DestinationDefinitionT
- type DestinationT
- type DgSourceTrackingPlanConfigT
- type LibrariesT
- type LibraryT
- type MockBackendConfig
- func (m *MockBackendConfig) AccessToken() string
- func (m *MockBackendConfig) EXPECT() *MockBackendConfigMockRecorder
- func (m *MockBackendConfig) Get(arg0 context.Context) (map[string]ConfigT, error)
- func (m *MockBackendConfig) Identity() identity.Identifier
- func (m *MockBackendConfig) SetUp() error
- func (m *MockBackendConfig) StartWithIDs(ctx context.Context, workspaces string)
- func (m *MockBackendConfig) Stop()
- func (m *MockBackendConfig) Subscribe(ctx context.Context, topic Topic) pubsub.DataChannel
- func (m *MockBackendConfig) WaitForConfig(ctx context.Context)
- type MockBackendConfigMockRecorder
- func (mr *MockBackendConfigMockRecorder) AccessToken() *gomock.Call
- func (mr *MockBackendConfigMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockBackendConfigMockRecorder) Identity() *gomock.Call
- func (mr *MockBackendConfigMockRecorder) SetUp() *gomock.Call
- func (mr *MockBackendConfigMockRecorder) StartWithIDs(ctx, workspaces interface{}) *gomock.Call
- func (mr *MockBackendConfigMockRecorder) Stop() *gomock.Call
- func (mr *MockBackendConfigMockRecorder) Subscribe(ctx, topic interface{}) *gomock.Call
- func (mr *MockBackendConfigMockRecorder) WaitForConfig(ctx interface{}) *gomock.Call
- type MockworkspaceConfig
- func (m *MockworkspaceConfig) AccessToken() string
- func (m *MockworkspaceConfig) EXPECT() *MockworkspaceConfigMockRecorder
- func (m *MockworkspaceConfig) Get(arg0 context.Context) (map[string]ConfigT, error)
- func (m *MockworkspaceConfig) Identity() identity.Identifier
- func (m *MockworkspaceConfig) SetUp() error
- type MockworkspaceConfigMockRecorder
- type NOOP
- func (*NOOP) AccessToken() string
- func (*NOOP) Get(_ context.Context) (map[string]ConfigT, error)
- func (*NOOP) Identity() identity.Identifier
- func (*NOOP) SetUp() error
- func (*NOOP) StartWithIDs(_ context.Context, _ string)
- func (*NOOP) Stop()
- func (*NOOP) Subscribe(ctx context.Context, _ Topic) pubsub.DataChannel
- func (*NOOP) WaitForConfig(_ context.Context)
- type Regulation
- type SRegulationsT
- type Settings
- type SourceDefinitionT
- type SourceRegulationT
- type SourceT
- type StorageBucket
- type StoragePreferences
- type Topic
- type TrackingPlanT
- type TransformationT
- type WRegulationsT
- type WorkspaceRegulationT
Constants ¶
const ( /*TopicBackendConfig topic provides updates on full backend config, via Subscribe function */ TopicBackendConfig Topic = "backendConfig" /*TopicProcessConfig topic provides updates on backend config of processor enabled destinations, via Subscribe function */ TopicProcessConfig Topic = "processConfig" /*RegulationSuppress refers to Suppress Regulation */ RegulationSuppress Regulation = "Suppress" /*RegulationDelete refers to Suppress and Delete Regulation */ RegulationDelete Regulation = "Delete" // TODO Will add support soon. /*RegulationSuppressAndDelete refers to Suppress and Delete Regulation */ RegulationSuppressAndDelete Regulation = "Suppress_With_Delete" GlobalEventType = "global" )
Variables ¶
var ( LastSync string LastRegulationSync string // DefaultBackendConfig will be initialized be Setup to either a WorkspaceConfig or MultiWorkspaceConfig. DefaultBackendConfig BackendConfig IoUtil = sysUtils.NewIoUtil() Diagnostics diagnostics.DiagnosticsI )
Functions ¶
func GetConfigBackendURL ¶
func GetConfigBackendURL() string
Types ¶
type BackendConfig ¶
type ConfigT ¶
type ConfigT struct { EnableMetrics bool `json:"enableMetrics"` WorkspaceID string `json:"workspaceId"` Sources []SourceT `json:"sources"` Libraries LibrariesT `json:"libraries"` ConnectionFlags ConnectionFlags `json:"flags"` Settings Settings `json:"settings"` UpdatedAt time.Time `json:"updatedAt"` }
type ConnectionFlags ¶
type DataRetention ¶
type DataRetention struct { DisableReportingPII bool `json:"disableReportingPii"` UseSelfStorage bool `json:"useSelfStorage"` StorageBucket StorageBucket `json:"storageBucket"` StoragePreferences StoragePreferences `json:"storagePreferences"` RetentionPeriod string `json:"retentionPeriod"` }
type DestinationDefinitionT ¶
type DestinationT ¶
type DestinationT struct { ID string Name string DestinationDefinition DestinationDefinitionT Config map[string]interface{} Enabled bool WorkspaceID string Transformations []TransformationT IsProcessorEnabled bool RevisionID string }
type DgSourceTrackingPlanConfigT ¶
type DgSourceTrackingPlanConfigT struct { SourceId string `json:"sourceId"` SourceConfigVersion int `json:"version"` Config map[string]map[string]interface{} `json:"config"` MergedConfig map[string]interface{} `json:"mergedConfig"` Deleted bool `json:"deleted"` TrackingPlan TrackingPlanT `json:"trackingPlan"` }
func (*DgSourceTrackingPlanConfigT) GetMergedConfig ¶
func (dgSourceTPConfigT *DgSourceTrackingPlanConfigT) GetMergedConfig(eventType string) map[string]interface{}
type LibrariesT ¶
type LibrariesT []LibraryT
type MockBackendConfig ¶
type MockBackendConfig struct {
// contains filtered or unexported fields
}
MockBackendConfig is a mock of BackendConfig interface.
func NewMockBackendConfig ¶
func NewMockBackendConfig(ctrl *gomock.Controller) *MockBackendConfig
NewMockBackendConfig creates a new mock instance.
func (*MockBackendConfig) AccessToken ¶
func (m *MockBackendConfig) AccessToken() string
AccessToken mocks base method.
func (*MockBackendConfig) EXPECT ¶
func (m *MockBackendConfig) EXPECT() *MockBackendConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackendConfig) Identity ¶
func (m *MockBackendConfig) Identity() identity.Identifier
Identity mocks base method.
func (*MockBackendConfig) SetUp ¶
func (m *MockBackendConfig) SetUp() error
SetUp mocks base method.
func (*MockBackendConfig) StartWithIDs ¶
func (m *MockBackendConfig) StartWithIDs(ctx context.Context, workspaces string)
StartWithIDs mocks base method.
func (*MockBackendConfig) Subscribe ¶
func (m *MockBackendConfig) Subscribe(ctx context.Context, topic Topic) pubsub.DataChannel
Subscribe mocks base method.
func (*MockBackendConfig) WaitForConfig ¶
func (m *MockBackendConfig) WaitForConfig(ctx context.Context)
WaitForConfig mocks base method.
type MockBackendConfigMockRecorder ¶
type MockBackendConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendConfigMockRecorder is the mock recorder for MockBackendConfig.
func (*MockBackendConfigMockRecorder) AccessToken ¶
func (mr *MockBackendConfigMockRecorder) AccessToken() *gomock.Call
AccessToken indicates an expected call of AccessToken.
func (*MockBackendConfigMockRecorder) Get ¶
func (mr *MockBackendConfigMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockBackendConfigMockRecorder) Identity ¶
func (mr *MockBackendConfigMockRecorder) Identity() *gomock.Call
Identity indicates an expected call of Identity.
func (*MockBackendConfigMockRecorder) SetUp ¶
func (mr *MockBackendConfigMockRecorder) SetUp() *gomock.Call
SetUp indicates an expected call of SetUp.
func (*MockBackendConfigMockRecorder) StartWithIDs ¶
func (mr *MockBackendConfigMockRecorder) StartWithIDs(ctx, workspaces interface{}) *gomock.Call
StartWithIDs indicates an expected call of StartWithIDs.
func (*MockBackendConfigMockRecorder) Stop ¶
func (mr *MockBackendConfigMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockBackendConfigMockRecorder) Subscribe ¶
func (mr *MockBackendConfigMockRecorder) Subscribe(ctx, topic interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe.
func (*MockBackendConfigMockRecorder) WaitForConfig ¶
func (mr *MockBackendConfigMockRecorder) WaitForConfig(ctx interface{}) *gomock.Call
WaitForConfig indicates an expected call of WaitForConfig.
type MockworkspaceConfig ¶
type MockworkspaceConfig struct {
// contains filtered or unexported fields
}
MockworkspaceConfig is a mock of workspaceConfig interface.
func NewMockworkspaceConfig ¶
func NewMockworkspaceConfig(ctrl *gomock.Controller) *MockworkspaceConfig
NewMockworkspaceConfig creates a new mock instance.
func (*MockworkspaceConfig) AccessToken ¶
func (m *MockworkspaceConfig) AccessToken() string
AccessToken mocks base method.
func (*MockworkspaceConfig) EXPECT ¶
func (m *MockworkspaceConfig) EXPECT() *MockworkspaceConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockworkspaceConfig) Identity ¶
func (m *MockworkspaceConfig) Identity() identity.Identifier
Identity mocks base method.
func (*MockworkspaceConfig) SetUp ¶
func (m *MockworkspaceConfig) SetUp() error
SetUp mocks base method.
type MockworkspaceConfigMockRecorder ¶
type MockworkspaceConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockworkspaceConfigMockRecorder is the mock recorder for MockworkspaceConfig.
func (*MockworkspaceConfigMockRecorder) AccessToken ¶
func (mr *MockworkspaceConfigMockRecorder) AccessToken() *gomock.Call
AccessToken indicates an expected call of AccessToken.
func (*MockworkspaceConfigMockRecorder) Get ¶
func (mr *MockworkspaceConfigMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockworkspaceConfigMockRecorder) Identity ¶
func (mr *MockworkspaceConfigMockRecorder) Identity() *gomock.Call
Identity indicates an expected call of Identity.
func (*MockworkspaceConfigMockRecorder) SetUp ¶
func (mr *MockworkspaceConfigMockRecorder) SetUp() *gomock.Call
SetUp indicates an expected call of SetUp.
type NOOP ¶
type NOOP struct{}
func (*NOOP) AccessToken ¶
func (*NOOP) Identity ¶
func (*NOOP) Identity() identity.Identifier
func (*NOOP) WaitForConfig ¶
type Regulation ¶
type Regulation string
type SRegulationsT ¶
type Settings ¶
type Settings struct {
DataRetention DataRetention `json:"dataRetention"`
}
type SourceDefinitionT ¶
type SourceRegulationT ¶
type SourceT ¶
type SourceT struct { ID string Name string SourceDefinition SourceDefinitionT Config map[string]interface{} Enabled bool WorkspaceID string Destinations []DestinationT WriteKey string DgSourceTrackingPlanConfig DgSourceTrackingPlanConfigT Transient bool EventSchemasEnabled bool }
type StorageBucket ¶
type StoragePreferences ¶
type StoragePreferences struct { ProcErrors bool `json:"procErrors"` GatewayDumps bool `json:"gatewayDumps"` ProcErrorDumps bool `json:"procErrorDumps"` RouterDumps bool `json:"routerDumps"` BatchRouterDumps bool `json:"batchRouterDumps"` }
func (StoragePreferences) Backup ¶
func (sp StoragePreferences) Backup(tableprefix string) bool
type Topic ¶
type Topic string
Topic refers to a subset of backend config's updates, received after subscribing using the backend config's Subscribe function.