mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-27 09:48:09 -07:00
initial redis work, storage.Storage->storage.Conn,
among other new options in the config file for storage timeouts
This commit is contained in:
+7
-3
@@ -33,12 +33,16 @@ type Client struct {
|
||||
|
||||
type Storage struct {
|
||||
Driver string `json:"driver"`
|
||||
Protocol string `json:"protocol"`
|
||||
Network string `json:"network`
|
||||
Addr string `json:"addr"`
|
||||
Username string `json:"user"`
|
||||
Password string `json:"pass"`
|
||||
Schema string `json:"schema"`
|
||||
Encoding string `json:"encoding"`
|
||||
Schema string `json:"schema,omitempty"`
|
||||
Encoding string `json:"encoding,omitempty"`
|
||||
|
||||
ConnectTimeout *Duration `json:"conn_timeout,omitempty"`
|
||||
ReadTimeout *Duration `json:"read_timeout,omitempty"`
|
||||
WriteTimeout *Duration `json:"write_timeout,omitempty"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
|
||||
Reference in New Issue
Block a user