Documentation ¶
Index ¶
- type ApiDefaults
- type BrokerDefaults
- type BrokerParameters
- type BrokerParametersCloudAws
- type BrokerParametersCloudAzure
- type BrokerParametersCloudGcp
- type CloudAwsConfig
- type CloudAzureConfig
- type CloudGcpConfig
- type CloudParameters
- type ConfigName
- type DatastoreDefaults
- type DatastoreParameters
- type DatastoreParametersCloudAws
- type DatastoreParametersCloudAzure
- type DatastoreParametersCloudGcp
- type DatastoreParametersMongodb
- type MultiRegionConfig
- func (cfg *MultiRegionConfig) GetBroker(collection string, region string) (broker string, err error)
- func (cfg *MultiRegionConfig) GetBrokerTypeForConfigName(cfgName string) (brokerType string)
- func (cfg *MultiRegionConfig) GetCloudEventDomain(collection string) string
- func (cfg *MultiRegionConfig) GetCollectionName(collection string, region string) string
- func (cfg *MultiRegionConfig) GetCollections() (collections []string)
- func (cfg *MultiRegionConfig) GetCoreSubscription(collection string, region string) string
- func (cfg *MultiRegionConfig) GetCoreTopic(collection string, region string) string
- func (cfg *MultiRegionConfig) GetDatastore(collection, region string) (datastore string, err error)
- func (cfg *MultiRegionConfig) GetDatastoreTypeForConfigName(cfgName string) (datastoreType string)
- func (cfg *MultiRegionConfig) GetForwarderDeadletterSubscription(collection string, region string) string
- func (cfg *MultiRegionConfig) GetForwarderDeadletterTopic(collection string, region string) string
- func (cfg *MultiRegionConfig) GetForwarderSubscription(collection string, region string) string
- func (cfg *MultiRegionConfig) GetForwarders(region string) (forwarders []string)
- func (cfg *MultiRegionConfig) GetGcpProjectID(collection, region string) (project string, err error)
- func (cfg *MultiRegionConfig) GetHandlerDeadletterSubscription(collection string, region string) string
- func (cfg *MultiRegionConfig) GetHandlerDeadletterTopic(collection string, region string) string
- func (cfg *MultiRegionConfig) GetRegions() (regions []string)
- func (cfg *MultiRegionConfig) GetServiceConfig(sc string) *ServiceConfig
- func (cfg *MultiRegionConfig) GetServiceConfigForCollectionRegion(collection, region string) (*ServiceConfig, error)
- func (cfg *MultiRegionConfig) GetServiceType(collection string, region string) string
- func (cfg *MultiRegionConfig) IsEnabled(collection string) bool
- func (cfg *MultiRegionConfig) Load(ctx context.Context, file string) error
- func (cfg *MultiRegionConfig) SetGcpProjectApplicationCredentialsFile(collection, region string) (err error)
- func (cfg *MultiRegionConfig) SetHttpServerPort(port int)
- func (cfg *MultiRegionConfig) SetRegion(region string)
- func (cfg *MultiRegionConfig) Validate(ctx context.Context) (err error)
- func (cfg *MultiRegionConfig) ValidateList(l []string, k, s string) (err error)
- type RegionName
- type ServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiDefaults ¶
type BrokerDefaults ¶
type BrokerDefaults struct { CloudEventDomain string `json:"cloudEventDomain"` BrokerTopicPrefix string `json:"brokerTopicPrefix"` BrokerSubscriptionPrefix string `json:"brokerSubscriptionPrefix"` BrokerDeadLetterSuffix string `json:"brokerDeadLetterSuffix"` BrokerForwarderSuffix string `json:"brokerForwarderSuffix"` BrokerMaxDeliveryAttempts int `json:"brokerMaxDeliveryAttempts"` BrokerMaxAckTimeInSeconds int `json:"brokerMaxAckTimeInSeconds"` Forwarders map[RegionName][]RegionName `json:"forwarders"` }
type BrokerParameters ¶
type BrokerParameters struct { BrokerType string `json:"brokerType"` MultiRegionForwarder bool `json:"multiRegionForwarder"` AzureBroker *BrokerParametersCloudAzure `json:"azureBroker"` GcpBroker *BrokerParametersCloudGcp `json:"gcpBroker"` AwsBroker *BrokerParametersCloudAws `json:"awsBroker"` OtherConfigMap map[string]string `json:"otherConfig"` }
type CloudAwsConfig ¶
type CloudAzureConfig ¶
type CloudGcpConfig ¶
type CloudParameters ¶
type CloudParameters struct { CloudType string `json:"cloudType"` AzureConfig *CloudAzureConfig `json:"azureConfig"` GcpConfig *CloudGcpConfig `json:"gcpConfig"` AwsConfig *CloudAwsConfig `json:"awsConfig"` OtherConfigMap map[string]string `json:"otherConfig"` }
type ConfigName ¶
type ConfigName string
type DatastoreDefaults ¶
type DatastoreDefaults struct {
DatastoreCollectionPrefix string `json:"datastoreCollectionPrefix"`
}
type DatastoreParameters ¶
type DatastoreParameters struct { DatastoreType string `json:"datastoreType"` AzureDatastore *DatastoreParametersCloudAzure `json:"azureDatastore"` GcpDatastore *DatastoreParametersCloudGcp `json:"gcpDatastore"` AwsDatastore *DatastoreParametersCloudAws `json:"awsDatastore"` MongoDb *DatastoreParametersMongodb `json:"mongoDb"` OtherConfigMap map[string]string `json:"otherConfig"` }
type MultiRegionConfig ¶
type MultiRegionConfig struct { EnvironmentPrefix string `json:"environmentPrefix"` RegionList []RegionName `json:"regionList"` CurrentRegion RegionName `json:"-"` ApiDefaults *ApiDefaults `json:"apiDefaults"` DatastoreDefaults *DatastoreDefaults `json:"datastoreDefaults"` BrokerDefaults *BrokerDefaults `json:"brokerDefaults"` ServiceConfigMap map[ConfigName]*ServiceConfig `json:"serviceConfig"` DefaultServiceConfigMap map[RegionName]ConfigName `json:"defaultServiceConfig"` CollectionMap map[collectionName]*collectionConfig `json:"collections"` }
func (*MultiRegionConfig) GetBroker ¶
func (cfg *MultiRegionConfig) GetBroker(collection string, region string) (broker string, err error)
func (*MultiRegionConfig) GetBrokerTypeForConfigName ¶
func (cfg *MultiRegionConfig) GetBrokerTypeForConfigName(cfgName string) (brokerType string)
func (*MultiRegionConfig) GetCloudEventDomain ¶
func (cfg *MultiRegionConfig) GetCloudEventDomain(collection string) string
func (*MultiRegionConfig) GetCollectionName ¶
func (cfg *MultiRegionConfig) GetCollectionName(collection string, region string) string
func (*MultiRegionConfig) GetCollections ¶
func (cfg *MultiRegionConfig) GetCollections() (collections []string)
func (*MultiRegionConfig) GetCoreSubscription ¶
func (cfg *MultiRegionConfig) GetCoreSubscription(collection string, region string) string
func (*MultiRegionConfig) GetCoreTopic ¶
func (cfg *MultiRegionConfig) GetCoreTopic(collection string, region string) string
func (*MultiRegionConfig) GetDatastore ¶
func (cfg *MultiRegionConfig) GetDatastore(collection, region string) (datastore string, err error)
func (*MultiRegionConfig) GetDatastoreTypeForConfigName ¶
func (cfg *MultiRegionConfig) GetDatastoreTypeForConfigName(cfgName string) (datastoreType string)
func (*MultiRegionConfig) GetForwarderDeadletterSubscription ¶
func (cfg *MultiRegionConfig) GetForwarderDeadletterSubscription(collection string, region string) string
func (*MultiRegionConfig) GetForwarderDeadletterTopic ¶
func (cfg *MultiRegionConfig) GetForwarderDeadletterTopic(collection string, region string) string
func (*MultiRegionConfig) GetForwarderSubscription ¶
func (cfg *MultiRegionConfig) GetForwarderSubscription(collection string, region string) string
func (*MultiRegionConfig) GetForwarders ¶
func (cfg *MultiRegionConfig) GetForwarders(region string) (forwarders []string)
func (*MultiRegionConfig) GetGcpProjectID ¶
func (cfg *MultiRegionConfig) GetGcpProjectID(collection, region string) (project string, err error)
func (*MultiRegionConfig) GetHandlerDeadletterSubscription ¶
func (cfg *MultiRegionConfig) GetHandlerDeadletterSubscription(collection string, region string) string
func (*MultiRegionConfig) GetHandlerDeadletterTopic ¶
func (cfg *MultiRegionConfig) GetHandlerDeadletterTopic(collection string, region string) string
func (*MultiRegionConfig) GetRegions ¶
func (cfg *MultiRegionConfig) GetRegions() (regions []string)
func (*MultiRegionConfig) GetServiceConfig ¶
func (cfg *MultiRegionConfig) GetServiceConfig(sc string) *ServiceConfig
func (*MultiRegionConfig) GetServiceConfigForCollectionRegion ¶
func (cfg *MultiRegionConfig) GetServiceConfigForCollectionRegion(collection, region string) (*ServiceConfig, error)
func (*MultiRegionConfig) GetServiceType ¶
func (cfg *MultiRegionConfig) GetServiceType(collection string, region string) string
func (*MultiRegionConfig) IsEnabled ¶
func (cfg *MultiRegionConfig) IsEnabled(collection string) bool
func (*MultiRegionConfig) Load ¶
func (cfg *MultiRegionConfig) Load(ctx context.Context, file string) error
func (*MultiRegionConfig) SetGcpProjectApplicationCredentialsFile ¶ added in v0.1.4
func (cfg *MultiRegionConfig) SetGcpProjectApplicationCredentialsFile(collection, region string) (err error)
func (*MultiRegionConfig) SetHttpServerPort ¶
func (cfg *MultiRegionConfig) SetHttpServerPort(port int)
func (*MultiRegionConfig) SetRegion ¶
func (cfg *MultiRegionConfig) SetRegion(region string)
func (*MultiRegionConfig) Validate ¶
func (cfg *MultiRegionConfig) Validate(ctx context.Context) (err error)
func (*MultiRegionConfig) ValidateList ¶
func (cfg *MultiRegionConfig) ValidateList(l []string, k, s string) (err error)
type RegionName ¶
type RegionName string
type ServiceConfig ¶
type ServiceConfig struct { ServiceType string `json:"serviceType"` Region RegionName `json:"region"` CloudParameters *CloudParameters `json:"cloudParameters"` BrokerParameters *BrokerParameters `json:"brokerParameters"` DatastoreParameters *DatastoreParameters `json:"datastoreParameters"` }
Source Files ¶
- BrokerDefaults.go
- BrokerParameters.go
- BrokerParametersCloudAws.go
- BrokerParametersCloudAzure.go
- BrokerParametersCloudGcp.go
- CloudAwsParameters.go
- CloudAzureParameters.go
- CloudGcpParameters.go
- CloudParameters.go
- CollectionConfig.go
- ConfigName.go
- DatastoreDefaults.go
- DatastoreParameters.go
- DatastoreParametersCloudAws.go
- DatastoreParametersCloudAzure.go
- DatastoreParametersCloudGcp.go
- DatastoreParametersMongodb.go
- MultiRegionConfig.go
- RegionName.go
- ServiceConfig.go
- apiDefaults.go
- collectionName.go
Click to show internal directories.
Click to hide internal directories.