gcsc v0.1.0 enable configuration management platform client's GF

gcsc configuration management platform client

Introduction

gcsc (go config server client) configuration management platform client, project-based development framework gf, mainly for configuration management platform ( to achieve client https://github.com/goflyfox/gcs) project;

Installation Tutorial

  • gopath mode: go get github.com/goflyfox/gcsc
  • Or add the use of go.mod:require github.com/goflyfox/gcsc latest

functional module

  1. Configuration management platform client implementations, only use load initialization can go mod references.
  2. Implement the client-side dynamic loading service published data, the client need not perceive automatically updated.
  3. Call the method is simple to use, equal to the local call.
  4. Support local cache parameters frequent calls without performance bottlenecks.
  5. Support restart the local load, then the server does not affect the availability of the client in exceptional circumstances.
  6. Support multi-project by project configuration is loaded and configured to acquire, easy configuration and maintenance.

Instructions for use

  1. This project configuration management platform ( client https://github.com/goflyfox/gcs) project implementation
  2. We need to configure the server address configuration management platform, project name, and a secret key storage address;
[config]
    # Server address
    server-url = "http://127.0.0.1"
    # Project name, supports multiple projects, separated by commas
    project-name = "test"
    Item # keys, corresponding to the item name
    project-secret = "12345678"
    # Data storage location for the boot loader to avoid data loss
    data-path = "data"
  1. Start initialization is required; _ "github.com/goflyfox/gcsc/task"
  2. You can get a direct call to the configuration data management platform, use the following example:
// management platform may be configured to obtain a value corresponding to test
client.Value("test")

thank

  1. gf framework  https://github.com/gogf/gf

Guess you like

Origin www.oschina.net/news/110638/gcsc-0-1-0-released