Documentation ¶
Index ¶
- Variables
- func Duration(d **duration.Duration, defaultValue time.Duration)
- func Float64(s *float64, defaultValue float64)
- func HttpHeaderToValuesMap(from http.Header) map[string]*Values
- func Int32(s *int32, defaultValue int32)
- func NotNil(field interface{})
- func String(s *string, defaultValue string)
- func Uint32(d *uint32, defaultValue uint32)
- func UrlValuesToValuesMap(from url.Values) map[string]*Values
- func ValuesMapToHttpHeader(from map[string]*Values) http.Header
- func ValuesMapToUrlValues(from map[string]*Values) url.Values
- type HttpRequest
- func (*HttpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HttpRequest) GetHeader() map[string]*Values
- func (x *HttpRequest) GetMethod() string
- func (x *HttpRequest) GetQuery() map[string]*Values
- func (x *HttpRequest) GetUrlPath() string
- func (x *HttpRequest) HttpHeader() http.Header
- func (*HttpRequest) ProtoMessage()
- func (x *HttpRequest) ProtoReflect() protoreflect.Message
- func (x *HttpRequest) Reset()
- func (x *HttpRequest) String() string
- func (x *HttpRequest) UrlQuery() url.Values
- func (m *HttpRequest) Validate() error
- type HttpRequestValidationError
- func (e HttpRequestValidationError) Cause() error
- func (e HttpRequestValidationError) Error() string
- func (e HttpRequestValidationError) ErrorName() string
- func (e HttpRequestValidationError) Field() string
- func (e HttpRequestValidationError) Key() bool
- func (e HttpRequestValidationError) Reason() string
- type HttpResponse
- func (*HttpResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HttpResponse) GetHeader() map[string]*Values
- func (x *HttpResponse) GetStatus() string
- func (x *HttpResponse) GetStatusCode() int32
- func (x *HttpResponse) HttpHeader() http.Header
- func (*HttpResponse) ProtoMessage()
- func (x *HttpResponse) ProtoReflect() protoreflect.Message
- func (x *HttpResponse) Reset()
- func (x *HttpResponse) String() string
- func (m *HttpResponse) Validate() error
- type HttpResponseValidationError
- func (e HttpResponseValidationError) Cause() error
- func (e HttpResponseValidationError) Error() string
- func (e HttpResponseValidationError) ErrorName() string
- func (e HttpResponseValidationError) Field() string
- func (e HttpResponseValidationError) Key() bool
- func (e HttpResponseValidationError) Reason() string
- type Values
- type ValuesValidationError
Constants ¶
This section is empty.
Variables ¶
var File_internal_tool_prototool_prototool_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type HttpRequest ¶
type HttpRequest struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Header map[string]*Values `` /* 153-byte string literal not displayed */ UrlPath string `protobuf:"bytes,3,opt,name=url_path,json=urlPath,proto3" json:"url_path,omitempty"` Query map[string]*Values `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
func (*HttpRequest) Descriptor
deprecated
func (*HttpRequest) Descriptor() ([]byte, []int)
Deprecated: Use HttpRequest.ProtoReflect.Descriptor instead.
func (*HttpRequest) GetHeader ¶
func (x *HttpRequest) GetHeader() map[string]*Values
func (*HttpRequest) GetMethod ¶
func (x *HttpRequest) GetMethod() string
func (*HttpRequest) GetQuery ¶
func (x *HttpRequest) GetQuery() map[string]*Values
func (*HttpRequest) GetUrlPath ¶
func (x *HttpRequest) GetUrlPath() string
func (*HttpRequest) HttpHeader ¶
func (x *HttpRequest) HttpHeader() http.Header
func (*HttpRequest) ProtoMessage ¶
func (*HttpRequest) ProtoMessage()
func (*HttpRequest) ProtoReflect ¶
func (x *HttpRequest) ProtoReflect() protoreflect.Message
func (*HttpRequest) Reset ¶
func (x *HttpRequest) Reset()
func (*HttpRequest) String ¶
func (x *HttpRequest) String() string
func (*HttpRequest) UrlQuery ¶
func (x *HttpRequest) UrlQuery() url.Values
func (*HttpRequest) Validate ¶
func (m *HttpRequest) Validate() error
Validate checks the field values on HttpRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type HttpRequestValidationError ¶
type HttpRequestValidationError struct {
// contains filtered or unexported fields
}
HttpRequestValidationError is the validation error returned by HttpRequest.Validate if the designated constraints aren't met.
func (HttpRequestValidationError) Cause ¶
func (e HttpRequestValidationError) Cause() error
Cause function returns cause value.
func (HttpRequestValidationError) Error ¶
func (e HttpRequestValidationError) Error() string
Error satisfies the builtin error interface
func (HttpRequestValidationError) ErrorName ¶
func (e HttpRequestValidationError) ErrorName() string
ErrorName returns error name.
func (HttpRequestValidationError) Field ¶
func (e HttpRequestValidationError) Field() string
Field function returns field value.
func (HttpRequestValidationError) Key ¶
func (e HttpRequestValidationError) Key() bool
Key function returns key value.
func (HttpRequestValidationError) Reason ¶
func (e HttpRequestValidationError) Reason() string
Reason function returns reason value.
type HttpResponse ¶
type HttpResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Header map[string]*Values `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*HttpResponse) Descriptor
deprecated
func (*HttpResponse) Descriptor() ([]byte, []int)
Deprecated: Use HttpResponse.ProtoReflect.Descriptor instead.
func (*HttpResponse) GetHeader ¶
func (x *HttpResponse) GetHeader() map[string]*Values
func (*HttpResponse) GetStatus ¶
func (x *HttpResponse) GetStatus() string
func (*HttpResponse) GetStatusCode ¶
func (x *HttpResponse) GetStatusCode() int32
func (*HttpResponse) HttpHeader ¶
func (x *HttpResponse) HttpHeader() http.Header
func (*HttpResponse) ProtoMessage ¶
func (*HttpResponse) ProtoMessage()
func (*HttpResponse) ProtoReflect ¶
func (x *HttpResponse) ProtoReflect() protoreflect.Message
func (*HttpResponse) Reset ¶
func (x *HttpResponse) Reset()
func (*HttpResponse) String ¶
func (x *HttpResponse) String() string
func (*HttpResponse) Validate ¶
func (m *HttpResponse) Validate() error
Validate checks the field values on HttpResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type HttpResponseValidationError ¶
type HttpResponseValidationError struct {
// contains filtered or unexported fields
}
HttpResponseValidationError is the validation error returned by HttpResponse.Validate if the designated constraints aren't met.
func (HttpResponseValidationError) Cause ¶
func (e HttpResponseValidationError) Cause() error
Cause function returns cause value.
func (HttpResponseValidationError) Error ¶
func (e HttpResponseValidationError) Error() string
Error satisfies the builtin error interface
func (HttpResponseValidationError) ErrorName ¶
func (e HttpResponseValidationError) ErrorName() string
ErrorName returns error name.
func (HttpResponseValidationError) Field ¶
func (e HttpResponseValidationError) Field() string
Field function returns field value.
func (HttpResponseValidationError) Key ¶
func (e HttpResponseValidationError) Key() bool
Key function returns key value.
func (HttpResponseValidationError) Reason ¶
func (e HttpResponseValidationError) Reason() string
Reason function returns reason value.
type Values ¶
type Values struct { Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Values) Descriptor
deprecated
func (*Values) ProtoMessage ¶
func (*Values) ProtoMessage()
func (*Values) ProtoReflect ¶
func (x *Values) ProtoReflect() protoreflect.Message
type ValuesValidationError ¶
type ValuesValidationError struct {
// contains filtered or unexported fields
}
ValuesValidationError is the validation error returned by Values.Validate if the designated constraints aren't met.
func (ValuesValidationError) Cause ¶
func (e ValuesValidationError) Cause() error
Cause function returns cause value.
func (ValuesValidationError) Error ¶
func (e ValuesValidationError) Error() string
Error satisfies the builtin error interface
func (ValuesValidationError) ErrorName ¶
func (e ValuesValidationError) ErrorName() string
ErrorName returns error name.
func (ValuesValidationError) Field ¶
func (e ValuesValidationError) Field() string
Field function returns field value.
func (ValuesValidationError) Key ¶
func (e ValuesValidationError) Key() bool
Key function returns key value.
func (ValuesValidationError) Reason ¶
func (e ValuesValidationError) Reason() string
Reason function returns reason value.