infrastructure

package
v0.0.0-...-7f33b96 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: AGPL-3.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 APIGatewayConfig

type APIGatewayConfig struct {
	Domain               string          `json:"domain"`
	Port                 int             `json:"port"`
	MongoURL             string          `json:"mongo_url"`
	DBName               string          `json:"database_name"`
	HTTP                 bool            `json:"http"`
	CaCert               string          `json:"ca-cert"`
	Certificates         string          `json:"certificates"`
	CookieDomain         string          `json:"cookie_domain"`
	CookiePath           string          `json:"cookie_path"`
	CookieHTTPOnly       bool            `json:"cookie_http_only"`
	CookieSameSite       int             `json:"cookie_same_site"`
	CookieSecure         bool            `json:"cookie_secure"`
	CookieTokenTitle     string          `json:"cookie_token_title"`
	AllowedOrigins       []string        `json:"allowed_origins"`
	TagPreviewLimit      int             `json:"tag_preview_limit"`
	TLSInsecure          bool            `json:"tls_insecure"`
	SessionRotation      bool            `json:"session_rotation"`
	DefaultMediaPageSize int             `json:"default_media_page_size"`
	InviteValidity       int             `json:"invite_validity"`
	Keycloak             *KeycloakConfig `json:"keycloak_config"`
}

APIGatewayConfig struct that stores every api related settings

type Config

type Config struct {
	APIGatewayConfig APIGatewayConfig `json:"api_gateway"`
	NodeConfig       NodeConfig       `json:"node"`
}

Config holds all possible configurations about the framework

type KeycloakConfig

type KeycloakConfig struct {
	URL      string `json:"url"`
	Realm    string `json:"realm"`
	ClientID string `json:"client_id"`
	Secret   string `json:"secret"`
}

KeycloakConfig stores the information for the client to connect to a keycloak

type NodeAuth

type NodeAuth struct {
	ID     string `json:"id"`
	Secret string `json:"secret"`
}

NodeAuth represents the id / secret map for the current node deployment

type NodeConfig

type NodeConfig struct {
	BasePath       string          `json:"basePath"`
	CaCert         string          `json:"ca-cert"`
	Certificates   string          `json:"certificates"`
	TargetPath     string          `json:"targetPath"`
	AllowedOrigins []string        `json:"allowed_origins"`
	GatewayURL     string          `json:"gateway_url"`
	Keycloak       *KeycloakConfig `json:"keycloak_config"`
	Port           int             `json:"port"`
	TLSInsecure    bool            `json:"tls_insecure"`
	NodeAuth       *NodeAuth       `json:"node_auth"`
}

NodeConfig struct that stores every api related settings

Jump to

Keyboard shortcuts

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