config

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by gogen-enum DO NOT EDIT.

Index

Constants

View Source
const (
	// EnvInputType -- AWS input source type [SQS|SNS|KINESIS]
	EnvInputType = "SCP_INPUT_TYPE"
	// EnvTenant -- tenant name environment variable
	EnvTenant = "SCP_TENANT"
	// EnvClientID -- client id environment variable
	EnvClientID = "SCP_CLIENT_ID"
	// EnvClientSecret -- client secret environment variable
	EnvClientSecret = "SCP_CLIENT_SECRET" //nolint:gosec
	// EnvHost -- event host environment variable
	EnvHost = "SCP_EVENT_HOST"
	// EnvSource -- event source environment variable
	EnvSource = "SCP_EVENT_SOURCE"
	// EnvSourceType -- event source type environment variable
	EnvSourceType = "SCP_EVENT_SOURCETYPE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EventSource  EventSourceType
	Tenant       string
	ClientID     string
	ClientSecret string
	Host         string
	Source       string
	SourceType   string
	Events       chan ingest.Event
}

Config --

func NewConfigFromEnv

func NewConfigFromEnv() *Config

NewConfigFromEnv --

func (*Config) Validate

func (e *Config) Validate() error

Validate --

type EventSourceType

type EventSourceType int

EventSourceType -- enum type

const (
	EventSourceTypeUnknown EventSourceType = 0 + iota
	EventSourceTypeSQS
	EventSourceTypeSNS
	EventSourceTypeKinesis
)

EventSourceType -- enum constants

func NewEventSourceType

func NewEventSourceType(k string) EventSourceType

NewEventSourceType -- Create EventSourceType instance from string representation

func (EventSourceType) String

func (t EventSourceType) String() string

String -- EventSourceType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL