cfg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger   config.Logger    `yaml:"logger" json:"logger"`
	Server   config.Listen    `yaml:"server" json:"server"`
	Health   *config.Listen   `yaml:"health" json:"health"`
	Metrics  *config.Listen   `yaml:"metrics" json:"metrics"`
	Clients  config.Clients   `yaml:"clients" json:"clients"`
	Database mongodb.Database `yaml:"database" json:"database"`
	OAuth2   config.OAuth2    `yaml:"oauth2" json:"oauth2"`
}

Config 配置

var Cfg Config

func (*Config) Init

func (e *Config) Init(handler http.Handler)

func (*Config) OnChange

func (e *Config) OnChange()

Jump to

Keyboard shortcuts

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