1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-12-17 21:57:26 +02:00

fix: struct field alignment (#2632)

This commit is contained in:
Lukasz Raczylo
2023-04-26 00:16:34 +00:00
committed by GitHub
parent 0f9b2f00c9
commit a7522e7d6c
113 changed files with 694 additions and 637 deletions

View File

@@ -16,20 +16,20 @@ import (
// Request is used to construct a http request for the k8s API.
type Request struct {
// the request context
context context.Context
client *http.Client
header http.Header
params url.Values
method string
host string
namespace string
context context.Context
body io.Reader
resource string
err error
client *http.Client
header http.Header
params url.Values
resourceName *string
subResource *string
body io.Reader
method string
host string
namespace string
err error
resource string
}
// Params is the object to pass in to set parameters
@@ -246,10 +246,10 @@ func (r *Request) Raw() (*http.Response, error) {
// Options ...
type Options struct {
Host string
Namespace string
BearerToken *string
Client *http.Client
Host string
Namespace string
}
// NewRequest creates a k8s api request.