server

package
v0.0.0-...-2c276d8 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: Apache-2.0 Copyright © 2022 Roberto Hidalgo <nidito@un.rob.mx>

SPDX-License-Identifier: Apache-2.0 Copyright © 2022 Roberto Hidalgo <nidito@un.rob.mx>

Index

Constants

This section is empty.

Variables

Functions

func Initialize

func Initialize(config *Config) (http.Handler, error)

Types

type Config

type Config struct {
	Name     string         `yaml:"name"`
	Adapter  map[string]any `yaml:"adapter"`
	HTTP     *HTTPConfig    `yaml:"http"`
	WebPush  *push.Config   `yaml:"push"`
	Timezone string         `yaml:"timezone"`
	DB       string         `yaml:"db"`
}

func ConfigDefaults

func ConfigDefaults(dbPath string) *Config

type HTTPConfig

type HTTPConfig struct {
	// Listen is a hostname:port
	Listen string `yaml:"listen"`
	// Origin describes the http origins to allow
	Origin string `yaml:"origin"`
	// Protocol specifies the protocol for the webauthn origin
	Protocol string `yaml:"protocol"`
}

Jump to

Keyboard shortcuts

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