func initShenYuCommonRequest()

in clients/http_client_factory.go [140:154]


func initShenYuCommonRequest(headers map[string][]string, params map[string]string, requestUrl string, busType string) *model.ShenYuCommonRequest {
	url := ""
	if len(busType) > 0 {
		url = constants.DEFAULT_SHENYU_ADMIN_URL + requestUrl //get Token
	} else {
		url = constants.DEFAULT_SHENYU_ADMIN_URL + constants.DEFAULT_BASE_PATH + requestUrl //register
	}
	tokenRequest := &model.ShenYuCommonRequest{
		Url:       url,
		Header:    headers,
		Params:    params,
		TimeoutMs: constants.DEFAULT_REQUEST_TIME,
	}
	return tokenRequest
}