mirror of
https://github.com/gofiber/storage.git
synced 2025-10-25 01:10:36 +08:00
README.md updated for comments
This commit is contained in:
@@ -51,10 +51,15 @@ store := etcd.New(Config{
|
|||||||
### Config
|
### Config
|
||||||
```go
|
```go
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
// Endpoints is a list of URLs.
|
||||||
Endpoints []string
|
Endpoints []string
|
||||||
|
// DialTimeout is the timeout for failing to establish a connection.
|
||||||
DialTimeout time.Duration
|
DialTimeout time.Duration
|
||||||
|
// Username is a username for authentication.
|
||||||
Username string
|
Username string
|
||||||
|
// Password is a password for authentication.
|
||||||
Password string
|
Password string
|
||||||
|
// Context is the context for the client.
|
||||||
Context context.Context
|
Context context.Context
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -7,10 +7,15 @@ import (
|
|||||||
|
|
||||||
// Config defines the config for storage.
|
// Config defines the config for storage.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
// Endpoints is a list of URLs.
|
||||||
Endpoints []string
|
Endpoints []string
|
||||||
|
// DialTimeout is the timeout for failing to establish a connection.
|
||||||
DialTimeout time.Duration
|
DialTimeout time.Duration
|
||||||
|
// Username is a username for authentication.
|
||||||
Username string
|
Username string
|
||||||
|
// Password is a password for authentication.
|
||||||
Password string
|
Password string
|
||||||
|
// Context is the context for the client.
|
||||||
Context context.Context
|
Context context.Context
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user