Documentation ¶
Index ¶
- Variables
- func CopyMap(s operator.M) (r operator.M)
- func GetMongodbTank(name string) func() operator.Tank
- func GetZookeeperTank(name string) func() operator.Tank
- func MarkProcess(f restful.RouteFunction) restful.RouteFunction
- func NewWatchServer(req *restful.Request, resp *restful.Response, tank operator.Tank) (*watchServer, error)
- func ReturnRest(resp *RestResponse)
- type ExtraField
- type Manager
- type RestResponse
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetMongodbTank ¶
func GetZookeeperTank ¶
func MarkProcess ¶
func MarkProcess(f restful.RouteFunction) restful.RouteFunction
MarkProcess does the following things: 1. print log when a request comes in and returns. 2. print request body to log. 3. flow control.
Types ¶
type ExtraField ¶
type ExtraField struct {
// contains filtered or unexported fields
}
func NewExtra ¶
func NewExtra(raw string) *ExtraField
func (*ExtraField) GetStr ¶
func (ef *ExtraField) GetStr() (string, error)
func (*ExtraField) Unmarshal ¶
func (ef *ExtraField) Unmarshal(r interface{}) (err error)
type Manager ¶
func NewManager ¶
Click to show internal directories.
Click to hide internal directories.