Documentation ¶
Index ¶
- Constants
- func BadRequest(id, detail string) error
- func Contains(s []string, e string) bool
- func Forbidden(id, detail string) error
- func Future(sec int, f func())
- func GetLocalIP(addr string) (string, error)
- func Goid() int
- func InternalServerError(id, detail string) error
- func NewError(id, detail string, code int32) error
- func NotFound(id, detail string) error
- func SetNetConnTimeout(conn net.Conn, timeout time.Duration)
- func TimeSecondDuration(sec int) time.Duration
- func TrimPrefix(s string, prefix string) string
- func TrimSuffix(s string, suffix string) string
- func Unauthorized(id, detail string) error
- type ApplicationConfig
- type Error
Constants ¶
View Source
const (
DUBBOGO_CTX_KEY = "dubbogo-ctx"
)
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func InternalServerError ¶
func SetNetConnTimeout ¶ added in v0.2.0
refer to samuel/go-zookeeper
func TimeSecondDuration ¶
func TrimPrefix ¶
func TrimSuffix ¶
func Unauthorized ¶
Types ¶
type ApplicationConfig ¶
type ApplicationConfig struct { // 组织名(BU或部门) Organization string // 应用名称 Name string // 模块名称 Module string // 模块版本 Version string // 应用负责人 Owner string }
func (*ApplicationConfig) ToString ¶
func (c *ApplicationConfig) ToString() string
Click to show internal directories.
Click to hide internal directories.