Documentation ¶
Index ¶
Constants ¶
View Source
const ( ComplianceEventName = "compliance_ingest" ConfigMgmtEventName = "cfgingest" EventFeedEventName = "event_feed" ScanJobCreatedEventName = "scanJobCreated" ScanJobUpdatedEventName = "scanJobUpdated" ScanJobDeletedEventName = "scanJobDeleted" ProfileCreatedEventName = "profileCreated" ProfileUpdatedEventName = "profileUpdate" ProfileDeletedEventName = "profileDeleted" NodeTerminatedEventName = "nodeTerminated" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventConfig ¶
type EventConfig struct { ServiceConfig ServiceConfig `mapstructure:"service"` InternalMessaging Nats `mapstructure:"internal_messaging"` StreamService StreamService `mapstructure:"stream_service"` LogConfig LogConfig `mapstructure:"log"` TLSConfig certs.TLSConfig `mapstructure:"tls"` ServiceCerts *certs.ServiceCerts HandlerEndpoints HandlerConfig `mapstructure:"handlers"` // use to get an instance of a service's event handler }
Configuration for the Event Service
func Configure ¶
func Configure() (*EventConfig, error)
Configure marshals configuration from the event-service configuration file that has been read in by Viper during the root command's initConfig(). Settings are parsed by Viper into the EventConfig struct.
func (*EventConfig) GetCerts ¶
func (c *EventConfig) GetCerts() *certs.ServiceCerts
func (*EventConfig) ListenAddress ¶
func (c *EventConfig) ListenAddress() string
ListenAddress is the address where gRPC server will bind and listen
func (*EventConfig) SetLogLevel ¶
func (c *EventConfig) SetLogLevel()
SetLogLevel sets the log level for the service
type HandlerConfig ¶
type ServiceConfig ¶
type StreamService ¶
Click to show internal directories.
Click to hide internal directories.