conf

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package conf built-in iris web application configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Host    string `yaml:"host"`
	Port    int    `yaml:"port"`
	Name    string `yaml:"name"`
	Version string `yaml:"version"`

	// Enable debugger.
	DebugProf       bool   `yaml:"debug-prof"`
	DebugProfPrefix string `yaml:"debug-prof-prefix"`

	// Pid
	// runtime process id of os.
	Pid     int       `yaml:"-"`
	Started time.Time `yaml:"-"`
	// contains filtered or unexported fields
}

Configuration is a config component for framework.

var Config *Configuration

Config is a singleton instance.

func (*Configuration) After

func (o *Configuration) After()

Jump to

Keyboard shortcuts

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