mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-30 08:06:40 +02:00
d94936f6c9
* v3 * revert plugins * fixup some issues
50 lines
743 B
Go
50 lines
743 B
Go
package config
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/asim/go-micro/v3/config/reader"
|
|
)
|
|
|
|
type value struct{}
|
|
|
|
func newValue() reader.Value {
|
|
return new(value)
|
|
}
|
|
|
|
func (v *value) Bool(def bool) bool {
|
|
return false
|
|
}
|
|
|
|
func (v *value) Int(def int) int {
|
|
return 0
|
|
}
|
|
|
|
func (v *value) String(def string) string {
|
|
return ""
|
|
}
|
|
|
|
func (v *value) Float64(def float64) float64 {
|
|
return 0.0
|
|
}
|
|
|
|
func (v *value) Duration(def time.Duration) time.Duration {
|
|
return time.Duration(0)
|
|
}
|
|
|
|
func (v *value) StringSlice(def []string) []string {
|
|
return nil
|
|
}
|
|
|
|
func (v *value) StringMap(def map[string]string) map[string]string {
|
|
return map[string]string{}
|
|
}
|
|
|
|
func (v *value) Scan(val interface{}) error {
|
|
return nil
|
|
}
|
|
|
|
func (v *value) Bytes() []byte {
|
|
return nil
|
|
}
|