config

package
v0.0.0-...-8bf0aa5 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentServer

type AgentServer struct {
	Port int `json:"port"`
}

type AppServer

type AppServer struct {
	Port int `json:"port"`
}

type Auth0

type Auth0 struct {
	Domain   string `json:"domain"`
	Audience string `json:"audience"`
}

type Config

type Config struct {
	AgentServer       AgentServer             `json:"agentServer"`
	AppServer         AppServer               `json:"appServer"`
	Logging           Logging                 `json:"logging"`
	Auth              serverAuth              `json:"auth"`
	Auth0             Auth0                   `json:"auth0"`
	Database          serverDatabase          `json:"database"`
	PackageManagement PackageManagementConfig `json:"packageManagement"`
}

func New

func New() (*Config, error)

type DatabaseType

type DatabaseType string
const (
	DatabaseTypeMemory      DatabaseType = "memory"
	DatabaseTypeCockroachDB DatabaseType = "cockroachdb"
)

type Logging

type Logging struct {
	Level string `json:"level"`
	Debug bool   `json:"debug"`
}

type PackageManagementConfig

type PackageManagementConfig struct {
	Provider      PackageManagementProvider            `json:"provider"`
	GithubRelease packages.GithubReleaseProviderConfig `json:"githubRelease,omitempty"`
}

type PackageManagementProvider

type PackageManagementProvider string
const (
	GithubReleaseProvider PackageManagementProvider = "github-release"
)

Jump to

Keyboard shortcuts

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