Documentation ¶
Index ¶
- Variables
- func GetWorkspaceIDForWriteKey(writeKey string) string
- func MakeBackendPostRequest(endpoint string, data interface{}) (response []byte, ok bool)
- func MakePostRequest(url string, endpoint string, data interface{}) (response []byte, ok bool)
- func Setup()
- func Subscribe(channel chan utils.DataEvent, topic string)
- func WaitForConfig()
- type BackendConfig
- type DestinationDefinitionT
- type DestinationT
- type MultiWorkspaceConfig
- type SourceDefinitionT
- type SourceT
- type SourcesT
- type TransformationT
- type WorkspaceConfig
- type WorkspacesT
Constants ¶
This section is empty.
Variables ¶
View Source
var Eb = new(utils.EventBus)
View Source
var (
LastSync string
)
Functions ¶
func MakeBackendPostRequest ¶
func MakePostRequest ¶
func WaitForConfig ¶
func WaitForConfig()
Types ¶
type BackendConfig ¶
type DestinationDefinitionT ¶
type DestinationT ¶
type DestinationT struct { ID string Name string DestinationDefinition DestinationDefinitionT Config interface{} Enabled bool Transformations []TransformationT IsProcessorEnabled bool }
type MultiWorkspaceConfig ¶
type MultiWorkspaceConfig struct {
// contains filtered or unexported fields
}
MultiWorkspaceConfig is a struct to hold variables necessary for supporting multiple workspaces.
func (*MultiWorkspaceConfig) Get ¶
func (multiWorkspaceConfig *MultiWorkspaceConfig) Get() (SourcesT, bool)
Get returns sources from all hosted workspaces
func (*MultiWorkspaceConfig) GetWorkspaceIDForWriteKey ¶
func (multiWorkspaceConfig *MultiWorkspaceConfig) GetWorkspaceIDForWriteKey(writeKey string) string
GetWorkspaceIDForWriteKey returns workspaceID for the given writeKey
func (*MultiWorkspaceConfig) SetUp ¶
func (multiWorkspaceConfig *MultiWorkspaceConfig) SetUp()
SetUp sets up MultiWorkspaceConfig
type SourceDefinitionT ¶
type SourceT ¶
type SourceT struct { ID string Name string SourceDefinition SourceDefinitionT Config interface{} Enabled bool WorkspaceID string Destinations []DestinationT WriteKey string }
type SourcesT ¶
type TransformationT ¶
type WorkspaceConfig ¶
type WorkspaceConfig struct { }
func (*WorkspaceConfig) Get ¶
func (workspaceConfig *WorkspaceConfig) Get() (SourcesT, bool)
Get returns sources from the workspace
func (*WorkspaceConfig) GetWorkspaceIDForWriteKey ¶
func (workspaceConfig *WorkspaceConfig) GetWorkspaceIDForWriteKey(writeKey string) string
func (*WorkspaceConfig) SetUp ¶
func (workspaceConfig *WorkspaceConfig) SetUp()
type WorkspacesT ¶
WorkspacesT holds sources of workspaces
Click to show internal directories.
Click to hide internal directories.