You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
kratos/contrib/config/polaris
rogerogers 6c36cc9544
feat: add contrib/config/polaris polaris as configcenter (#2158)
3 years ago
..
README.md feat: add contrib/config/polaris polaris as configcenter (#2158) 3 years ago
config.go feat: add contrib/config/polaris polaris as configcenter (#2158) 3 years ago
config_test.go feat: add contrib/config/polaris polaris as configcenter (#2158) 3 years ago
go.mod feat: add contrib/config/polaris polaris as configcenter (#2158) 3 years ago
go.sum feat: add contrib/config/polaris polaris as configcenter (#2158) 3 years ago
polaris.yaml feat: add contrib/config/polaris polaris as configcenter (#2158) 3 years ago
watcher.go feat: add contrib/config/polaris polaris as configcenter (#2158) 3 years ago

README.md

Polaris Config

import (
 "log"

 "github.com/polarismesh/polaris-go"
 "github.com/go-kratos/kratos/contrib/config/polaris/v2"
)

func main() {

 configApi, err := polaris.NewConfigAPI()
 if err != nil {
  log.Fatalln(err)
 }

 source, err := New(&configApi, WithNamespace("default"), WithFileGroup("default"), WithFileName("default.yaml"))

 if err != nil {
  log.Fatalln(err)
 }
 source.Load()
}