config

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Version           string `json:"version"`
	Name              string `json:"name"`
	Env               string `json:"env"`
	Port              string `json:"port"`
	TrackerDomain     string `json:"trackerDomain"`
	EnableConfigRoute bool   `json:"enableConfigRoute"`
	Serverless        bool   `json:"serverless"`
}

type Auth added in v0.15.0

type Auth struct {
	Enabled bool     `json:"enabled"`
	Tokens  []string `json:"-"`
}

type Backend

type Backend struct {
	Type string `json:"type"`
	Path string `json:"path"`
	// S3 and Gcs
	Bucket string `json:"bucket,omitempty"`
	// Gcs
	Region string `json:"region,omitempty"`
	// Http
	Host string `json:"host,omitempty"`
	// Db, general
	RegistryTable string `json:"registryTable,omitempty"`
	// Postgres Database
	DbHost string `json:"-"`
	DbPort uint16 `json:"-"`
	DbName string `json:"-"`
	DbUser string `json:"-"`
	DbPass string `json:"-"`
	// Mongodb
	MongoHosts         []string `json:"mongoHosts,omitempty"`
	MongoPort          string   `json:"mongoDbPort,omitempty"`
	MongoDbName        string   `json:"mongoDbName,omitempty"`
	MongoUser          string   `json:"-"`
	MongoPass          string   `json:"-"`
	RegistryCollection string   `json:"registryCollection,omitempty"`
	// Minio
	MinioEndpoint   string `json:"minioEndpoint,omitempty"`
	AccessKeyId     string `json:"accessKeyId,omitempty"`
	SecretAccessKey string `json:"secretAccessKey,omitempty"`
}

type Cloudevents

type Cloudevents struct {
	Enabled bool   `json:"enabled"`
	Path    string `json:"path"`
}

type Config

type Config struct {
	App        `json:"app"`
	Middleware `json:"middleware"`
	Inputs     `json:"inputs"`
	Registry   `json:"registry"`
	Manifold   `json:"manifold,omitempty"`
	Sinks      []Sink `json:"sinks"`
	Squawkbox  `json:"squawkBox"`
	Tele       `json:"tele"`
}

type Cors

type Cors struct {
	Enabled          bool     `json:"enabled"`
	AllowOrigin      []string `json:"allowOrigin"`
	AllowCredentials bool     `json:"allowCredentials"`
	AllowMethods     []string `json:"allowMethods"`
	MaxAge           int      `json:"maxAge"`
}

type Http added in v0.12.0

type Http struct {
	Enabled bool `json:"enabled"`
}

type Identity

type Identity struct {
	Cookie   IdentityCookie `json:"cookie"`
	Fallback string         `json:"fallback"`
}

type IdentityCookie

type IdentityCookie struct {
	Enabled  bool   `json:"enabled"`
	Name     string `json:"name"`
	Secure   bool   `json:"secure"`
	TtlDays  int    `json:"ttlDays"`
	Domain   string `json:"domain"`
	Path     string `json:"path"`
	SameSite string `json:"sameSite"`
}

type Inputs

type Inputs struct {
	Snowplow       `json:"snowplow"`
	Cloudevents    `json:"cloudevents"`
	SelfDescribing `json:"selfDescribing"`
	Webhook        `json:"webhook"`
	Pixel          `json:"pixel"`
}

type Manifold

type Manifold struct {
}

type Middleware

type Middleware struct {
	Timeout       `json:"timeout"`
	RateLimiter   `json:"rateLimiter"`
	Identity      `json:"identity"`
	Cors          `json:"cors"`
	RequestLogger `json:"requestLogger"`
	Auth          `json:"auth"`
}

type Pixel

type Pixel struct {
	Enabled bool   `json:"enabled"`
	Path    string `json:"path"`
}

type Purge

type Purge struct {
	Enabled bool `json:"enabled"`
}

type RateLimiter

type RateLimiter struct {
	Enabled bool   `json:"enabled"`
	Period  string `json:"period"`
	Limit   int64  `json:"limit"`
}

type Registry added in v0.12.0

type Registry struct {
	Backend      `json:"backend"`
	TtlSeconds   int `json:"ttlSeconds"`
	MaxSizeBytes int `json:"maxSizeBytes"`
	Purge        `json:"purge"`
	Http         `json:"http"`
}

type Relay

type Relay struct {
	Enabled bool   `json:"enabled"`
	Path    string `json:"path"`
}

type RequestLogger

type RequestLogger struct {
	Enabled bool `json:"enabled"`
}

type SelfDescribing added in v0.12.0

type SelfDescribing struct {
	Enabled  bool                             `json:"enabled"`
	Path     string                           `json:"path"`
	Contexts SelfDescribingRootConfig         `json:"contexts"`
	Payload  SelfDescribingRootAndChildConfig `json:"payload"`
}

type SelfDescribingRootAndChildConfig added in v0.12.0

type SelfDescribingRootAndChildConfig struct {
	RootKey   string `json:"rootKey"`
	SchemaKey string `json:"schemaKey"`
	DataKey   string `json:"dataKey"`
}

type SelfDescribingRootConfig added in v0.12.0

type SelfDescribingRootConfig struct {
	RootKey string `json:"rootKey"`
}

type Sink

type Sink struct {
	Name             string `json:"name"`
	Type             string `json:"type"`
	DeliveryRequired bool   `json:"deliveryRequired"`
	DefaultOutput    string `json:"defaultOutput"`
	DeadletterOutput string `json:"deadletterOutput"`
	// GCP
	Project string `json:"project,omitempty"`
	// Kafka
	Brokers []string `json:"kakfaBrokers,omitempty"`
	// Http / API
	Url    string `json:"url"`
	ApiKey string `json:"-"`
	Token  string `json:"-"`
	// Misc
	Region string `json:"-"`
	// Database
	Hosts    []string `json:"-"`
	Port     uint16   `json:"-"`
	Database string   `json:"-"`
	User     string   `json:"-"`
	Password string   `json:"-"`
	// Pubnub
	PubnubPubKey string `json:"pubnubPubKey,omitempty"`
	PubnubSubKey string `json:"pubnubSubKey,omitempty"`
}

type Snowplow

type Snowplow struct {
	Enabled               bool   `json:"enabled"`
	StandardRoutesEnabled bool   `json:"standardRoutesEnabled"`
	OpenRedirectsEnabled  bool   `json:"openRedirectsEnabled"`
	GetPath               string `json:"getPath"`
	PostPath              string `json:"postPath"`
	RedirectPath          string `json:"redirectPath"`
}

type Squawkbox

type Squawkbox struct {
	Enabled bool `json:"enabled"`
}

type Tele

type Tele struct {
	Enabled bool   `json:"enabled,omitempty"`
	Host    string `json:"host,omitempty"`
}

type Timeout

type Timeout struct {
	Enabled bool `json:"enabled"`
	Ms      int  `json:"ms"`
}

type Webhook

type Webhook struct {
	Enabled bool   `json:"enabled"`
	Path    string `json:"path"`
}

Jump to

Keyboard shortcuts

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