etcd

package module
v0.0.0-...-0025b7e Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 10 Imported by: 4

Documentation

Overview

Package etcd 封装 etcd 配置 API

Index

Constants

View Source
const (
	// ErrClientYAML 表示 client YAML 配置错误
	ErrClientYAML = E("amc etcd client YAML error")
)

Variables

This section is empty.

Functions

func RegisterClientProvider

func RegisterClientProvider(ctx context.Context, s *server.Server, key string) error

RegisterClientProvider 注册 etcd tRPC client provider 配置, 支持通过 etcd 修改 client 配置, 并且覆盖 tRPC global config

Types

type API

type API struct{}

实现 config.API

func (API) GetConfig

func (API) GetConfig() config.KVConfig

GetConfig 实现 config.API

type E

type E string

E 表示内部错误

func (E) Error

func (e E) Error() string

Jump to

Keyboard shortcuts

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