feat 基础模块拆分为雪花和日志模块
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user