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: 10 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"`
	Database mongodb.Database `yaml:"database" json:"database"`
	Github   Github           `yaml:"github" json:"github"`
	Clients  config.Clients   `yaml:"clients" json:"clients"`
}

Config 配置

var Cfg Config

func (*Config) Init

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

type Github

type Github struct {
	PersonalAccessToken string `yaml:"personalAccessToken" json:"personalAccessToken"`
}

Jump to

Keyboard shortcuts

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