feat 基础模块拆分为雪花和日志模块

This commit is contained in:
2026-02-07 13:13:02 +08:00
parent 5a0f4b71d4
commit 0ca8a0ccbb
6 changed files with 91 additions and 28 deletions

View File

@@ -37,6 +37,10 @@ func GetClient() *Client {
return instance
}
func (c *Client) Raw() *clientv3.Client {
return c.cli
}
// Get 获取数据
func (c *Client) Get(key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error) {
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)