config

package
v0.0.0-...-dffc411 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfg *Config, router http.Handler) *http.Server

Types

type Config

type Config struct {
	/* Config - Represents a configuration object.
	   @Field CorsOrigins - The origins to allow CORS requests from.
	   @Field Auth - The authentication configuration.
	*/
	Port        string   `yaml:"port"`
	CorsOrigins []string `yaml:"cors_origins"`
	IssuerUrl   string   `yaml:"issuer_url"`
	Audience    string   `yaml:"audience"`
	Dev         bool
	Auth        struct {
		ClientID     string `yaml:"client_id"`
		ClientSecret string `yaml:"client_secret"`
	} `yaml:"auth"`
}

func NewConfig

func NewConfig() *Config

Jump to

Keyboard shortcuts

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