config

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	IntrospectURL   string `yaml:"introspect_url" envconfig:"BACKEND_INTROSPECT_URL"`
	MediaManagerURL string `yaml:"media_manager_url" envconfig:"RENDER_INTERNAL_URL"`
}

func (*Common) Init

func (x *Common) Init()

type Config

type Config struct {
	MQTT     MQTT     `yaml:"mqtt"`
	MySQL    MySQL    `yaml:"mysql"`
	Influx   Influx   `yaml:"influx"`
	UIClient UIClient `yaml:"ui_client"`
	Hydra    Hydra    `yaml:"hydra"`
	Settings Local    `yaml:"settings"`
	Common   Common   `yaml:"common"`
}

Config : structure to hold configuration

func GetConfig

func GetConfig() *Config

GetConfig : get config file

func (*Config) Init

func (x *Config) Init()

type Hydra added in v0.3.2

type Hydra struct {
	AdminURL        string   `yaml:"admin_url" envconfig:"HYDRA_ADMIN_URL"`
	RedirectScheme  string   `yaml:"redirect_scheme" envconfig:"HYDRA_REDIRECT_SCHEME"` // https or http for local development.
	CallbackPaths   []string `yaml:"callback_path" envconfig:"HYDRA_CALLBACK_PATHS"`
	PostLogoutPaths []string `yaml:"post_logout_path" envconfig:"HYDRA_POST_LOGOUT_PATHS"`
}

func (*Hydra) Init added in v0.3.2

func (x *Hydra) Init()

type Influx

type Influx struct {
	URL    string `yaml:"url" envconfig:"INFLUXDB_URL"`
	ORG    string `yaml:"org" envconfig:"INFLUXDB_ORG"`
	BUCKET string `yaml:"bucket" envconfig:"INFLUXDB_BUCKET"`
	TOKEN  string `yaml:"token" envconfig:"INFLUXDB_TOKEN"`
}

func (*Influx) Init

func (x *Influx) Init()

type Local

type Local struct {
	Address          string `yaml:"bind_address" envconfig:"CONTROLLER_BIND_ADDRESS"`
	Port             uint   `yaml:"bind_port" envconfig:"CONTROLLER_BIND_PORT"`
	LogLevel         int    `yaml:"loglevel"  envconfig:"CONTROLLER_LOGLEVEL"`
	ExtensionStorage string `yaml:"storage"  envconfig:"CONTROLLER_STORAGE"`
}

func (*Local) Init

func (x *Local) Init()

type MQTT

type MQTT struct {
	HOST     string `yaml:"host" envconfig:"MQTT_BROKER_HOST"`
	PORT     uint   `yaml:"port" envconfig:"MQTT_BROKER_PORT"`
	USER     string `yaml:"user" envconfig:"MQTT_BROKER_USER"`
	PASSWORD string `yaml:"password" envconfig:"MQTT_BROKER_PASSWORD"`
}

MQTT : structure to hold configuration

func (*MQTT) Init

func (x *MQTT) Init()

type MySQL

type MySQL struct {
	DATABASE string `yaml:"database" envconfig:"DB_DATABASE"`
	HOST     string `yaml:"host" envconfig:"DB_HOST"`
	PORT     uint   `yaml:"port" envconfig:"DB_PORT"`
	USERNAME string `yaml:"username" envconfig:"DB_USERNAME"`
	PASSWORD string `yaml:"password" envconfig:"DB_PASSWORD"`
}

func (*MySQL) GenConfig

func (x *MySQL) GenConfig() *mysql.Config

func (*MySQL) Init

func (x *MySQL) Init()

type UIClient added in v0.1.1

type UIClient struct {
	FrontendURL                   string `yaml:"frontend_url" json:"-" envconfig:"FRONTEND_URL"`
	KeycloakOpenIDConnectURL      string `yaml:"keycloak_open_id_connect_url" json:"KEYCLOAK_OPENID_CONNECT_URL" envconfig:"KEYCLOAK_OPENID_CONNECT_URL"`
	KeycloakOpenIDClientID        string `yaml:"keycloak_open_id_client_id" json:"KEYCLOAK_OPENID_CLIENT_ID" envconfig:"KEYCLOAK_OPENID_CLIENT_ID"`
	KeycloakOpenIDScope           string `yaml:"keycloak_open_id_scope" json:"KEYCLOAK_OPENID_SCOPE" envconfig:"KEYCLOAK_OPENID_SCOPE"`
	HydraOpenIDConnectURL         string `yaml:"hydra_open_id_connect_url" json:"HYDRA_OPENID_CONNECT_URL" envconfig:"HYDRA_OPENID_CONNECT_URL"`
	HydraOpenIDClientID           string `yaml:"hydra_open_id_client_id" json:"HYDRA_OPENID_CLIENT_ID" envconfig:"HYDRA_OPENID_CLIENT_ID"`
	HydraOpenIDGuestClientID      string `yaml:"hydra_open_id_guest_client_id" json:"HYDRA_OPENID_GUEST_CLIENT_ID" envconfig:"HYDRA_OPENID_GUEST_CLIENT_ID"`
	HydraOpenIDScope              string `yaml:"hydra_open_id_scope" json:"HYDRA_OPENID_SCOPE" envconfig:"HYDRA_OPENID_SCOPE"`
	Web3IdentityProviderURL       string `yaml:"web_3_identity_provider_url" json:"WEB3_IDENTITY_PROVIDER_URL" envconfig:"WEB3_IDENTITY_PROVIDER_URL"`
	GuestIdentityProviderURL      string `yaml:"guest_identity_provider_url" json:"GUEST_IDENTITY_PROVIDER_URL" envconfig:"GUEST_IDENTITY_PROVIDER_URL"`
	SentryDSN                     string `yaml:"sentry_dsn" json:"SENTRY_DSN" envconfig:"SENTRY_DSN"`
	AgoraAppID                    string `yaml:"agora_app_id" json:"AGORA_APP_ID" envconfig:"AGORA_APP_ID"`
	AuthServiceURL                string `yaml:"auth_service_url" json:"AUTH_SERVICE_URL" envconfig:"AUTH_SERVICE_URL"`
	GoogleAPIClientID             string `yaml:"google_api_client_id" json:"GOOGLE_API_CLIENT_ID" envconfig:"GOOGLE_API_CLIENT_ID"`
	GoogleAPIDeveloperKey         string `yaml:"google_api_developer_key" json:"GOOGLE_API_DEVELOPER_KEY" envconfig:"GOOGLE_API_DEVELOPER_KEY"`
	MiroAppID                     string `yaml:"miro_app_id" json:"MIRO_APP_ID" envconfig:"MIRO_APP_ID"`
	ReactAppYoutubeKey            string `yaml:"react_app_youtube_key" json:"YOUTUBE_KEY" envconfig:"REACT_APP_YOUTUBE_KEY"`
	StreamChatKey                 string `yaml:"streamchat_key" json:"STREAMCHAT_KEY" envconfig:"STREAMCHAT_KEY"`
	UnityClientStreamingAssetsURL string `` /* 127-byte string literal not displayed */
	UnityClientCompanyName        string `yaml:"unity_client_company_name" json:"UNITY_CLIENT_COMPANY_NAME" envconfig:"UNITY_CLIENT_COMPANY_NAME"`
	UnityClientProductName        string `yaml:"unity_client_product_name" json:"UNITY_CLIENT_PRODUCT_NAME" envconfig:"UNITY_CLIENT_PRODUCT_NAME"`
	UnityClientProductVersion     string `yaml:"unity_client_product_version" json:"UNITY_CLIENT_PRODUCT_VERSION" envconfig:"UNITY_CLIENT_PRODUCT_VERSION"`
}

func (*UIClient) Init added in v0.1.1

func (c *UIClient) Init()

type World

type World struct {
	Kind       string               `json:"kind"`
	Spaces     map[string]uuid.UUID `json:"spaces"`
	SpaceTypes map[string]uuid.UUID `json:"space_types"`
	Effects    map[string]uuid.UUID `json:"effects"`
}

Jump to

Keyboard shortcuts

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