common

package
v0.0.61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpMethod

type HttpMethod string
const (
	HttpMethodGet     HttpMethod = "GET"
	HttpMethodPost    HttpMethod = "POST"
	HttpMethodPut     HttpMethod = "PUT"
	HttpMethodDelete  HttpMethod = "DELETE"
	HttpMethodPatch   HttpMethod = "PATCH"
	HttpMethodOptions HttpMethod = "OPTIONS"
	HttpMethodHead    HttpMethod = "HEAD"
	HttpMethodConnect HttpMethod = "CONNECT"
	HttpMethodTrace   HttpMethod = "TRACE"
)

func NewHttpMethodFromString

func NewHttpMethodFromString(s string) (HttpMethod, error)

func (HttpMethod) Ptr

func (h HttpMethod) Ptr() *HttpMethod

type RequestInfo

type RequestInfo struct {
	BaseUrl         string            `json:"baseUrl" url:"baseUrl"`
	Path            string            `json:"path" url:"path"`
	Method          HttpMethod        `json:"method" url:"method"`
	PathParams      map[string]string `json:"pathParams,omitempty" url:"pathParams,omitempty"`
	QueryParams     map[string]string `json:"queryParams,omitempty" url:"queryParams,omitempty"`
	HeaderParams    map[string]string `json:"headerParams,omitempty" url:"headerParams,omitempty"`
	BodyParams      *string           `json:"bodyParams,omitempty" url:"bodyParams,omitempty"`
	FormParams      map[string]string `json:"formParams,omitempty" url:"formParams,omitempty"`
	MultipartParams map[string]string `json:"multipartParams,omitempty" url:"multipartParams,omitempty"`
	StatusCode      *int              `json:"statusCode,omitempty" url:"statusCode,omitempty"`
	ResponseBody    *string           `json:"responseBody,omitempty" url:"responseBody,omitempty"`
	ResponseHeaders map[string]string `json:"responseHeaders,omitempty" url:"responseHeaders,omitempty"`
	Errors          []string          `json:"errors,omitempty" url:"errors,omitempty"`
	Timestamp       time.Time         `json:"timestamp" url:"timestamp"`
	// contains filtered or unexported fields
}

func (*RequestInfo) GetExtraProperties

func (r *RequestInfo) GetExtraProperties() map[string]interface{}

func (*RequestInfo) MarshalJSON

func (r *RequestInfo) MarshalJSON() ([]byte, error)

func (*RequestInfo) String

func (r *RequestInfo) String() string

func (*RequestInfo) UnmarshalJSON

func (r *RequestInfo) UnmarshalJSON(data []byte) error

type RequestParams

type RequestParams struct {
	PathParams      map[string]string `json:"pathParams,omitempty" url:"pathParams,omitempty"`
	QueryParams     map[string]string `json:"queryParams,omitempty" url:"queryParams,omitempty"`
	HeaderParams    map[string]string `json:"headerParams,omitempty" url:"headerParams,omitempty"`
	BodyParams      string            `json:"bodyParams" url:"bodyParams"`
	FormParams      map[string]string `json:"formParams,omitempty" url:"formParams,omitempty"`
	MultipartParams map[string]string `json:"multipartParams,omitempty" url:"multipartParams,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestParams) GetExtraProperties

func (r *RequestParams) GetExtraProperties() map[string]interface{}

func (*RequestParams) String

func (r *RequestParams) String() string

func (*RequestParams) UnmarshalJSON

func (r *RequestParams) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL