Documentation
¶
Index ¶
- Constants
- type AWSXRayConfig
- type AzureAppInsightsConfig
- type ConnectionTypes
- type DataStore
- func (ds DataStore) GetID() id.ID
- func (ds DataStore) HasID() bool
- func (ds DataStore) IsOTLPBasedProvider() bool
- func (d DataStore) MarshalJSON() ([]byte, error)
- func (d DataStore) MarshalYAML() ([]byte, error)
- func (d *DataStore) UnmarshalJSON(input []byte) error
- func (d *DataStore) UnmarshalYAML(input []byte) error
- func (ds DataStore) Validate() error
- type DataStoreType
- type DataStoreValues
- type ElasticSearchConfig
- type GRPCClientSettings
- type GRPCCompression
- type HttpClientConfig
- type MultiChannelClientConfig
- type MultiChannelClientType
- type Repository
- func (r *Repository) Count(ctx context.Context, query string) (int, error)
- func (r *Repository) Create(ctx context.Context, updated DataStore) (DataStore, error)
- func (r *Repository) Current(ctx context.Context) (DataStore, error)
- func (r *Repository) Get(ctx context.Context, id id.ID) (DataStore, error)
- func (r *Repository) List(ctx context.Context, take, skip int, query, sortBy, sortDirection string) ([]DataStore, error)
- func (r *Repository) Provision(ctx context.Context, dataStore DataStore) error
- func (r *Repository) SetID(dataStore DataStore, id id.ID) DataStore
- func (*Repository) SortingFields() []string
- func (r *Repository) Update(ctx context.Context, dataStore DataStore) (DataStore, error)
- type SignalFXConfig
- type SumoLogicConfig
- type TLS
- type TLSSetting
Constants ¶
View Source
const DataStoreSingleID id.ID = "current"
View Source
const ResourceName = "DataStore"
View Source
const ResourceNamePlural = "DataStores"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSXRayConfig ¶
type AzureAppInsightsConfig ¶
type AzureAppInsightsConfig struct {
UseAzureActiveDirectoryAuth bool `json:"useAzureActiveDirectoryAuth"`
AccessToken string `json:"accessToken"`
ResourceArmId string `json:"resourceArmId"`
ConnectionType ConnectionTypes `json:"connectionType"`
}
type ConnectionTypes ¶
type ConnectionTypes string
const ( ConnectionTypesDirect ConnectionTypes = "direct" ConnectionTypesCollector ConnectionTypes = "collector" )
type DataStore ¶
type DataStore struct {
ID id.ID `json:"id"`
Name string `json:"name"`
Type DataStoreType `json:"type"`
Default bool `json:"default"`
Values DataStoreValues `json:"values"`
CreatedAt string `json:"createdAt"`
}
func (DataStore) IsOTLPBasedProvider ¶
func (DataStore) MarshalJSON ¶
func (DataStore) MarshalYAML ¶
func (*DataStore) UnmarshalJSON ¶
func (*DataStore) UnmarshalYAML ¶
type DataStoreType ¶
type DataStoreType string
const ( DataStoreTypeJaeger DataStoreType = "jaeger" DataStoreTypeTempo DataStoreType = "tempo" DataStoreTypeOpenSearch DataStoreType = "opensearch" DataStoreTypeSignalFX DataStoreType = "signalfx" DataStoreTypeOTLP DataStoreType = "otlp" DataStoreTypeNewRelic DataStoreType = "newrelic" DataStoreTypeLighStep DataStoreType = "lightstep" DataStoreTypeElasticAPM DataStoreType = "elasticapm" DataStoreTypeDataDog DataStoreType = "datadog" DataStoreTypeAwsXRay DataStoreType = "awsxray" DataStoreTypeHoneycomb DataStoreType = "honeycomb" DatastoreTypeAzureAppInsights DataStoreType = "azureappinsights" DatastoreTypeSumoLogic DataStoreType = "sumologic" DatastoreTypeSignoz DataStoreType = "signoz" DatastoreTypeDynatrace DataStoreType = "dynatrace" DatastoreTypeAgent DataStoreType = "agent" )
type DataStoreValues ¶
type DataStoreValues struct {
AwsXRay *AWSXRayConfig `json:"awsxray,omitempty"`
ElasticApm *ElasticSearchConfig `json:"elasticapm,omitempty"`
Jaeger *GRPCClientSettings `json:"jaeger,omitempty"`
OpenSearch *ElasticSearchConfig `json:"opensearch,omitempty"`
SignalFx *SignalFXConfig `json:"signalfx,omitempty"`
Tempo *MultiChannelClientConfig `json:"tempo,omitempty"`
AzureAppInsights *AzureAppInsightsConfig `json:"azureappinsights,omitempty"`
SumoLogic *SumoLogicConfig `json:"sumologic"`
}
type ElasticSearchConfig ¶
type GRPCClientSettings ¶
type GRPCClientSettings struct {
Endpoint string `json:"endpoint,omitempty"`
ReadBufferSize int `json:"readBufferSize,omitempty"`
WriteBufferSize int `json:"writeBufferSize,omitempty"`
WaitForReady bool `json:"waitForReady,omitempty"`
Headers map[string]string `json:"headers,omitempty"`
BalancerName string `json:"balancerName,omitempty"`
Compression GRPCCompression `json:"compression,omitempty"`
TLS *TLS `json:"tls,omitempty"`
}
type GRPCCompression ¶
type GRPCCompression string
const ( GRPCCompressionGZip GRPCCompression = "gzip" GRPCCompressionZlib GRPCCompression = "zlib" GRPCCompressionDeflate GRPCCompression = "deflate" GRPCCompressionSnappy GRPCCompression = "snappy" GRPCCompressionZstd GRPCCompression = "zstd" GRPCCompressionNone GRPCCompression = "none" )
type HttpClientConfig ¶
type MultiChannelClientConfig ¶
type MultiChannelClientConfig struct {
Type MultiChannelClientType `json:"type"`
Grpc *GRPCClientSettings `json:"grpc,omitempty"`
Http *HttpClientConfig `json:"http,omitempty"`
}
type MultiChannelClientType ¶
type MultiChannelClientType string
const ( MultiChannelClientTypeGRPC MultiChannelClientType = "grpc" MultiChannelClientTypeHTTP MultiChannelClientType = "http" )
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *sql.DB) *Repository
func (*Repository) Provision ¶
func (r *Repository) Provision(ctx context.Context, dataStore DataStore) error
func (*Repository) SortingFields ¶
func (*Repository) SortingFields() []string
type SignalFXConfig ¶
type SumoLogicConfig ¶ added in v0.14.9
Click to show internal directories.
Click to hide internal directories.