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 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, arg1 string) (ConfigT, error)
- func (m *MockBackendConfig) GetWorkspaceIDForSourceID(arg0 string) string
- func (m *MockBackendConfig) GetWorkspaceIDForWriteKey(arg0 string) string
- func (m *MockBackendConfig) GetWorkspaceLibrariesForWorkspaceID(arg0 string) LibrariesT
- 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, arg1 interface{}) *gomock.Call
- func (mr *MockBackendConfigMockRecorder) GetWorkspaceIDForSourceID(arg0 interface{}) *gomock.Call
- func (mr *MockBackendConfigMockRecorder) GetWorkspaceIDForWriteKey(arg0 interface{}) *gomock.Call
- func (mr *MockBackendConfigMockRecorder) GetWorkspaceLibrariesForWorkspaceID(arg0 interface{}) *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, arg1 string) (ConfigT, error)
- func (m *MockworkspaceConfig) GetWorkspaceIDForSourceID(arg0 string) string
- func (m *MockworkspaceConfig) GetWorkspaceIDForWriteKey(arg0 string) string
- func (m *MockworkspaceConfig) GetWorkspaceLibrariesForWorkspaceID(arg0 string) LibrariesT
- func (m *MockworkspaceConfig) SetUp() error
- type MockworkspaceConfigMockRecorder
- func (mr *MockworkspaceConfigMockRecorder) AccessToken() *gomock.Call
- func (mr *MockworkspaceConfigMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockworkspaceConfigMockRecorder) GetWorkspaceIDForSourceID(arg0 interface{}) *gomock.Call
- func (mr *MockworkspaceConfigMockRecorder) GetWorkspaceIDForWriteKey(arg0 interface{}) *gomock.Call
- func (mr *MockworkspaceConfigMockRecorder) GetWorkspaceLibrariesForWorkspaceID(arg0 interface{}) *gomock.Call
- func (mr *MockworkspaceConfigMockRecorder) SetUp() *gomock.Call
- type Regulation
- type SRegulationsT
- type SourceDefinitionT
- type SourceRegulationT
- type SourceT
- type Topic
- type TrackingPlanT
- type TransformationT
- type WRegulationsT
- type WorkspaceRegulationT
- type WorkspacesT
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 ¶ added in v0.1.10
func GetConfigBackendURL() string
Types ¶
type BackendConfig ¶
type ConfigT ¶ added in v0.1.10
type ConfigT struct { EnableMetrics bool `json:"enableMetrics"` WorkspaceID string `json:"workspaceId"` Sources []SourceT `json:"sources"` Libraries LibrariesT `json:"libraries"` ConnectionFlags ConnectionFlags `json:"flags"` }
type ConnectionFlags ¶ added in v0.1.10
type DestinationDefinitionT ¶
type DestinationT ¶
type DestinationT struct { ID string Name string DestinationDefinition DestinationDefinitionT Config map[string]interface{} Enabled bool Transformations []TransformationT IsProcessorEnabled bool RevisionID string }
type DgSourceTrackingPlanConfigT ¶ added in v0.1.10
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 ¶ added in v0.1.10
func (dgSourceTPConfigT *DgSourceTrackingPlanConfigT) GetMergedConfig(eventType string) map[string]interface{}
type LibrariesT ¶ added in v0.1.10
type LibrariesT []LibraryT
type MockBackendConfig ¶ added in v1.0.2
type MockBackendConfig struct {
// contains filtered or unexported fields
}
MockBackendConfig is a mock of BackendConfig interface.
func NewMockBackendConfig ¶ added in v1.0.2
func NewMockBackendConfig(ctrl *gomock.Controller) *MockBackendConfig
NewMockBackendConfig creates a new mock instance.
func (*MockBackendConfig) AccessToken ¶ added in v1.0.2
func (m *MockBackendConfig) AccessToken() string
AccessToken mocks base method.
func (*MockBackendConfig) EXPECT ¶ added in v1.0.2
func (m *MockBackendConfig) EXPECT() *MockBackendConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackendConfig) GetWorkspaceIDForSourceID ¶ added in v1.0.2
func (m *MockBackendConfig) GetWorkspaceIDForSourceID(arg0 string) string
GetWorkspaceIDForSourceID mocks base method.
func (*MockBackendConfig) GetWorkspaceIDForWriteKey ¶ added in v1.0.2
func (m *MockBackendConfig) GetWorkspaceIDForWriteKey(arg0 string) string
GetWorkspaceIDForWriteKey mocks base method.
func (*MockBackendConfig) GetWorkspaceLibrariesForWorkspaceID ¶ added in v1.0.2
func (m *MockBackendConfig) GetWorkspaceLibrariesForWorkspaceID(arg0 string) LibrariesT
GetWorkspaceLibrariesForWorkspaceID mocks base method.
func (*MockBackendConfig) SetUp ¶ added in v1.0.2
func (m *MockBackendConfig) SetUp() error
SetUp mocks base method.
func (*MockBackendConfig) StartWithIDs ¶ added in v1.0.2
func (m *MockBackendConfig) StartWithIDs(ctx context.Context, workspaces string)
StartWithIDs mocks base method.
func (*MockBackendConfig) Stop ¶ added in v1.0.2
func (m *MockBackendConfig) Stop()
Stop mocks base method.
func (*MockBackendConfig) Subscribe ¶ added in v1.0.2
func (m *MockBackendConfig) Subscribe(ctx context.Context, topic Topic) pubsub.DataChannel
Subscribe mocks base method.
func (*MockBackendConfig) WaitForConfig ¶ added in v1.0.2
func (m *MockBackendConfig) WaitForConfig(ctx context.Context)
WaitForConfig mocks base method.
type MockBackendConfigMockRecorder ¶ added in v1.0.2
type MockBackendConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendConfigMockRecorder is the mock recorder for MockBackendConfig.
func (*MockBackendConfigMockRecorder) AccessToken ¶ added in v1.0.2
func (mr *MockBackendConfigMockRecorder) AccessToken() *gomock.Call
AccessToken indicates an expected call of AccessToken.
func (*MockBackendConfigMockRecorder) Get ¶ added in v1.0.2
func (mr *MockBackendConfigMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockBackendConfigMockRecorder) GetWorkspaceIDForSourceID ¶ added in v1.0.2
func (mr *MockBackendConfigMockRecorder) GetWorkspaceIDForSourceID(arg0 interface{}) *gomock.Call
GetWorkspaceIDForSourceID indicates an expected call of GetWorkspaceIDForSourceID.
func (*MockBackendConfigMockRecorder) GetWorkspaceIDForWriteKey ¶ added in v1.0.2
func (mr *MockBackendConfigMockRecorder) GetWorkspaceIDForWriteKey(arg0 interface{}) *gomock.Call
GetWorkspaceIDForWriteKey indicates an expected call of GetWorkspaceIDForWriteKey.
func (*MockBackendConfigMockRecorder) GetWorkspaceLibrariesForWorkspaceID ¶ added in v1.0.2
func (mr *MockBackendConfigMockRecorder) GetWorkspaceLibrariesForWorkspaceID(arg0 interface{}) *gomock.Call
GetWorkspaceLibrariesForWorkspaceID indicates an expected call of GetWorkspaceLibrariesForWorkspaceID.
func (*MockBackendConfigMockRecorder) SetUp ¶ added in v1.0.2
func (mr *MockBackendConfigMockRecorder) SetUp() *gomock.Call
SetUp indicates an expected call of SetUp.
func (*MockBackendConfigMockRecorder) StartWithIDs ¶ added in v1.0.2
func (mr *MockBackendConfigMockRecorder) StartWithIDs(ctx, workspaces interface{}) *gomock.Call
StartWithIDs indicates an expected call of StartWithIDs.
func (*MockBackendConfigMockRecorder) Stop ¶ added in v1.0.2
func (mr *MockBackendConfigMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockBackendConfigMockRecorder) Subscribe ¶ added in v1.0.2
func (mr *MockBackendConfigMockRecorder) Subscribe(ctx, topic interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe.
func (*MockBackendConfigMockRecorder) WaitForConfig ¶ added in v1.0.2
func (mr *MockBackendConfigMockRecorder) WaitForConfig(ctx interface{}) *gomock.Call
WaitForConfig indicates an expected call of WaitForConfig.
type MockworkspaceConfig ¶ added in v1.0.2
type MockworkspaceConfig struct {
// contains filtered or unexported fields
}
MockworkspaceConfig is a mock of workspaceConfig interface.
func NewMockworkspaceConfig ¶ added in v1.0.2
func NewMockworkspaceConfig(ctrl *gomock.Controller) *MockworkspaceConfig
NewMockworkspaceConfig creates a new mock instance.
func (*MockworkspaceConfig) AccessToken ¶ added in v1.0.2
func (m *MockworkspaceConfig) AccessToken() string
AccessToken mocks base method.
func (*MockworkspaceConfig) EXPECT ¶ added in v1.0.2
func (m *MockworkspaceConfig) EXPECT() *MockworkspaceConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockworkspaceConfig) GetWorkspaceIDForSourceID ¶ added in v1.0.2
func (m *MockworkspaceConfig) GetWorkspaceIDForSourceID(arg0 string) string
GetWorkspaceIDForSourceID mocks base method.
func (*MockworkspaceConfig) GetWorkspaceIDForWriteKey ¶ added in v1.0.2
func (m *MockworkspaceConfig) GetWorkspaceIDForWriteKey(arg0 string) string
GetWorkspaceIDForWriteKey mocks base method.
func (*MockworkspaceConfig) GetWorkspaceLibrariesForWorkspaceID ¶ added in v1.0.2
func (m *MockworkspaceConfig) GetWorkspaceLibrariesForWorkspaceID(arg0 string) LibrariesT
GetWorkspaceLibrariesForWorkspaceID mocks base method.
func (*MockworkspaceConfig) SetUp ¶ added in v1.0.2
func (m *MockworkspaceConfig) SetUp() error
SetUp mocks base method.
type MockworkspaceConfigMockRecorder ¶ added in v1.0.2
type MockworkspaceConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockworkspaceConfigMockRecorder is the mock recorder for MockworkspaceConfig.
func (*MockworkspaceConfigMockRecorder) AccessToken ¶ added in v1.0.2
func (mr *MockworkspaceConfigMockRecorder) AccessToken() *gomock.Call
AccessToken indicates an expected call of AccessToken.
func (*MockworkspaceConfigMockRecorder) Get ¶ added in v1.0.2
func (mr *MockworkspaceConfigMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockworkspaceConfigMockRecorder) GetWorkspaceIDForSourceID ¶ added in v1.0.2
func (mr *MockworkspaceConfigMockRecorder) GetWorkspaceIDForSourceID(arg0 interface{}) *gomock.Call
GetWorkspaceIDForSourceID indicates an expected call of GetWorkspaceIDForSourceID.
func (*MockworkspaceConfigMockRecorder) GetWorkspaceIDForWriteKey ¶ added in v1.0.2
func (mr *MockworkspaceConfigMockRecorder) GetWorkspaceIDForWriteKey(arg0 interface{}) *gomock.Call
GetWorkspaceIDForWriteKey indicates an expected call of GetWorkspaceIDForWriteKey.
func (*MockworkspaceConfigMockRecorder) GetWorkspaceLibrariesForWorkspaceID ¶ added in v1.0.2
func (mr *MockworkspaceConfigMockRecorder) GetWorkspaceLibrariesForWorkspaceID(arg0 interface{}) *gomock.Call
GetWorkspaceLibrariesForWorkspaceID indicates an expected call of GetWorkspaceLibrariesForWorkspaceID.
func (*MockworkspaceConfigMockRecorder) SetUp ¶ added in v1.0.2
func (mr *MockworkspaceConfigMockRecorder) SetUp() *gomock.Call
SetUp indicates an expected call of SetUp.
type Regulation ¶ added in v0.1.10
type Regulation string
type SRegulationsT ¶ added in v0.1.10
type SourceDefinitionT ¶
type SourceRegulationT ¶ added in v0.1.10
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 }
type Topic ¶ added in v0.1.10
type Topic string
Topic refers to a subset of backend config's updates, received after subscribing using the backend config's Subscribe function.
type TrackingPlanT ¶ added in v0.1.10
type TransformationT ¶
type WRegulationsT ¶ added in v0.1.10
type WorkspaceRegulationT ¶ added in v0.1.10
type WorkspacesT ¶
WorkspacesT holds sources of workspaces