config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Code generated from Pkl module `Config`. DO NOT EDIT.

Code generated from Pkl module `Config`. DO NOT EDIT.

Code generated from Pkl module `Config`. DO NOT EDIT.

Code generated from Pkl module `Config`. DO NOT EDIT.

Code generated from Pkl module `Config`. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host string `pkl:"host"`

	Port uint16 `pkl:"port"`

	Cors *Cors `pkl:"cors"`

	WebRTC *WebRTC `pkl:"webRTC"`

	LogLevel loglevel.LogLevel `pkl:"logLevel"`
}

Configuration for the application.

func Load

func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*Config, error)

Load loads the pkl module at the given source and evaluates it with the given evaluator into a Config

func LoadFromPath

func LoadFromPath(ctx context.Context, path string) (ret *Config, err error)

LoadFromPath loads the pkl module at the given path and evaluates it into a Config

type Cors

type Cors struct {
	AllowOrigins []string `pkl:"allowOrigins"`

	AllowMethods []string `pkl:"allowMethods"`
}

CORS configuration for the application.

type ICEServer

type ICEServer struct {
	Urls []string `pkl:"urls"`

	Username string `pkl:"username"`

	Credential any `pkl:"credential"`
}

ICE server configuration.

type WebRTC

type WebRTC struct {
	IceServers []*ICEServer `pkl:"iceServers"`
}

WebRTC configuration.

Directories

Path Synopsis
Code generated from Pkl module `Config`.
Code generated from Pkl module `Config`.

Jump to

Keyboard shortcuts

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