config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(c services.Config) services.Config

Mount 挂载配置内容

Types

type Service

type Service struct {
	services.Config
	// contains filtered or unexported fields
}

Service 配置服务

func (*Service) Get

func (s *Service) Get(fieldStr string, args ...any) any

Get 获取配置参数, 包含默认值

func (*Service) Init

func (s *Service) Init(...services.Service) services.Service

Init 服务初始化

Jump to

Keyboard shortcuts

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