| 1234567891011121314151617181920212223242526 |
- package gateway
- type builderParams struct {
- httpMethod string
- relativePath string
- requestItems []*builderRequestItem
- globalRequestCallbackFunc GlobalRequestCallbackFunc
- }
- func newBuilderParams() *builderParams {
- return &builderParams{
- httpMethod: "",
- relativePath: "",
- requestItems: make([]*builderRequestItem, 0),
- globalRequestCallbackFunc: nil,
- }
- }
- func (params *builderParams) copy() *builderParams {
- return &builderParams{
- httpMethod: params.httpMethod,
- relativePath: params.relativePath,
- requestItems: params.requestItems,
- globalRequestCallbackFunc: params.globalRequestCallbackFunc,
- }
- }
|