2023-10-08 15:59:42 +07:00
|
|
|
package config
|
|
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
|
|
type httpConfig struct {
|
|
|
|
|
host string
|
|
|
|
|
port int
|
|
|
|
|
detailedError bool
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *httpConfig) Address() string {
|
|
|
|
|
return fmt.Sprintf("%s:%d", c.host, c.port)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *httpConfig) DetailedError() bool {
|
|
|
|
|
return c.detailedError
|
|
|
|
|
}
|