config

package
v0.0.0-...-c6dfff9 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig() error

func SetConfig

func SetConfig(newConfig *Config)

Types

type Config

type Config struct {
	Flows         map[string]Flow `yaml:"flows"`
	Session       session.Config  `yaml:"session"`
	Server        Server          `yaml:"server"`
	EncryptionKey string          `yaml:"encryptionKey"`
	UserDataStore user.Config     `yaml:"userDataStore"`
}

func GetConfig

func GetConfig() Config

type Cors

type Cors struct {
	AllowedOrigins []string
}

type Flow

type Flow struct {
	Modules []Module `yaml:"modules"`
}

type Module

type Module struct {
	ID         string                 `yaml:"id"`
	Type       string                 `yaml:"type"`
	Properties map[string]interface{} `yaml:"properties,omitempty"`
	Criteria   string                 `yaml:"criteria"`
}

type Server

type Server struct {
	Cors Cors
}

Jump to

Keyboard shortcuts

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