config

package module
v0.0.0-...-07fd9c8 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

README

chain5j-config配置中心

简介

chain5j-config chain5j链配置中心。

功能

  1. 提供chainConfiglocalConfig配置的获取
  2. 热加载localConfig,能够让本地配置自动更新

使用说明

node.config, err = config.Factory{}.NewFactory(
	node.configFile,
	config.WithDB(node.database), 
	)

证书

chain5j-config 的源码允许用户在遵循 Apache 2.0 开源证书 规则的前提下使用。

版权

Copyright@2022 chain5j

chain5j

Documentation

Overview

Package config

@author: xwc1125

Package config

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(configFile string, opts ...option) (protocol.Config, error)

NewConfig 加载本地配置文件

func WithDB

func WithDB(db protocol.DatabaseReader) option

Types

This section is empty.

Jump to

Keyboard shortcuts

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