// Dump is used to show current retry policy
Dump is used to show current retry policy
// Dump is used to show current retry policy
func (rc *Container) Dump() interface{} {
	dm := make(map[string]interface{})
	if rc.cliRetryer != nil {
		dm["clientRetryer"] = rc.cliRetryer.Dump()
	}
	rc.retryerMap.Range(func(key, value interface{}) bool {
		if r, ok := value.(Retryer); ok {
			dm[key.(string)] = r.Dump()
		}
		return true
	})
	if rc.msg != "" {
		dm["msg"] = rc.msg
	}
	return dm
}
func ( rc * Container ) Dump ( ) interface { } { dm := make ( map [ string ] interface { } ) if rc . cliRetryer != nil { dm [ " " ] = rc . cliRetryer . Dump ( ) } rc . retryerMap . Range ( func ( key , value interface { } ) bool { if r , ok := value . ( Retryer ) ; ok { dm [ key . ( string ) ] = r . Dump ( ) } return true } ) if rc . msg != " " { dm [ " " ] = rc . msg } return dm }
Dump is used to show current retry policy
Dump is used to show current retry policy