Documentation ¶
Index ¶
- Constants
- func HealthHandler(w http.ResponseWriter, r *http.Request, jobsDB jobsdb.JobsDB)
- func Init()
- func RegisterConfigEnvFeature(f ConfigEnvFeatureSetup)
- func RegisterMigratorFeature(f MigratorFeatureSetup)
- func RegisterReplayFeature(f ReplayFeatureSetup)
- func RegisterReportingFeature(f ReportingFeatureSetup)
- func RegisterSuppressUserFeature(f SuppressUserFeatureSetup)
- type App
- type ConfigEnvFeature
- type ConfigEnvFeatureSetup
- type Features
- type Interface
- type MigratorFeature
- type MigratorFeatureSetup
- type Options
- type ReplayFeature
- type ReplayFeatureSetup
- type ReportingFeature
- type ReportingFeatureSetup
- type SuppressUserFeature
- type SuppressUserFeatureSetup
Constants ¶
const ( GATEWAY = "GATEWAY" PROCESSOR = "PROCESSOR" EMBEDDED = "EMBEDDED" )
Variables ¶
This section is empty.
Functions ¶
func HealthHandler ¶
HealthHandler is the http handler for health endpoint
func RegisterConfigEnvFeature ¶
func RegisterConfigEnvFeature(f ConfigEnvFeatureSetup)
RegisterConfigEnvFeature registers a config env feature implementation
func RegisterMigratorFeature ¶
func RegisterMigratorFeature(f MigratorFeatureSetup)
RegisterMigratorFeature registers a Migration implementation
func RegisterReplayFeature ¶
func RegisterReplayFeature(f ReplayFeatureSetup)
RegisterReplayFeature registers a config env feature implementation
func RegisterReportingFeature ¶
func RegisterReportingFeature(f ReportingFeatureSetup)
RegisterReportingFeature registers a config env feature implementation
func RegisterSuppressUserFeature ¶
func RegisterSuppressUserFeature(f SuppressUserFeatureSetup)
RegisterSuppressUserFeature registers a suppress user feature implementation
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App holds the main application's configuration and state
type ConfigEnvFeature ¶
type ConfigEnvFeature interface {
Setup() types.ConfigEnvI
}
ConfigEnvFeature handles override of config from ENV variables.
type ConfigEnvFeatureSetup ¶
type ConfigEnvFeatureSetup func(Interface) ConfigEnvFeature
ConfigEnvFeatureSetup is a function that initializes a ConfigEnv feature
type Features ¶
type Features struct { Migrator MigratorFeature SuppressUser SuppressUserFeature ConfigEnv ConfigEnvFeature Reporting ReportingFeature Replay ReplayFeature }
Features contains optional implementations of Enterprise only features.
type Interface ¶
type Interface interface { Setup() // Initializes application Stop() // Stop application Options() *Options // Get this application's options Features() *Features // Get this application's enterprise features }
Interface of a rudder-server application
type MigratorFeature ¶
type MigratorFeature interface { Run(context.Context, *jobsdb.HandleT, *jobsdb.HandleT, *jobsdb.HandleT, func(), func()) PrepareJobsdbsForImport(*jobsdb.HandleT, *jobsdb.HandleT, *jobsdb.HandleT) }
MigratorFeature handles migration of nodes during cluster's scale up/down.
type MigratorFeatureSetup ¶
type MigratorFeatureSetup func(Interface) MigratorFeature
MigratorFeatureSetup is a function that initializes a Migrator feature, based on application instance
type Options ¶
type Options struct { NormalMode bool DegradedMode bool MigrationMode string ClearDB bool Cpuprofile string Memprofile string VersionFlag bool }
Options contains application's initialisation options
func LoadOptions ¶
func LoadOptions() *Options
LoadOptions loads application's initialisation options based on command line flags and environment
type ReplayFeature ¶
ReplayFeature handles inserting of failed jobs into repsective gw/rt jobsdb
type ReplayFeatureSetup ¶
type ReplayFeatureSetup func(Interface) ReplayFeature
ReplayFeatureSetup is a function that initializes a Replay feature
type ReportingFeature ¶
type ReportingFeature interface { Setup(backendConfig backendconfig.BackendConfig) types.ReportingI GetReportingInstance() types.ReportingI }
ReportingFeature handles reporting statuses / errors to reporting service
type ReportingFeatureSetup ¶
type ReportingFeatureSetup func(Interface) ReportingFeature
ReportingFeatureSetup is a function that initializes a Reporting feature
type SuppressUserFeature ¶
type SuppressUserFeature interface {
Setup(backendConfig backendconfig.BackendConfig) types.SuppressUserI
}
SuppressUserFeature handles webhook event requests
type SuppressUserFeatureSetup ¶
type SuppressUserFeatureSetup func(Interface) SuppressUserFeature
SuppressUserFeatureSetup is a function that initializes a Webhook feature, based on application instance