Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterPodApiHTTPServer(s *http.Server, srv PodApiHTTPServer)
- func RegisterPodApiServer(s grpc.ServiceRegistrar, srv PodApiServer)
- type DeletePodApiReply
- func (*DeletePodApiReply) Descriptor() ([]byte, []int)deprecated
- func (*DeletePodApiReply) ProtoMessage()
- func (x *DeletePodApiReply) ProtoReflect() protoreflect.Message
- func (x *DeletePodApiReply) Reset()
- func (x *DeletePodApiReply) String() string
- func (m *DeletePodApiReply) Validate() error
- func (m *DeletePodApiReply) ValidateAll() error
- type DeletePodApiReplyMultiError
- type DeletePodApiReplyValidationError
- func (e DeletePodApiReplyValidationError) Cause() error
- func (e DeletePodApiReplyValidationError) Error() string
- func (e DeletePodApiReplyValidationError) ErrorName() string
- func (e DeletePodApiReplyValidationError) Field() string
- func (e DeletePodApiReplyValidationError) Key() bool
- func (e DeletePodApiReplyValidationError) Reason() string
- type DeletePodApiRequest
- func (*DeletePodApiRequest) Descriptor() ([]byte, []int)deprecated
- func (*DeletePodApiRequest) ProtoMessage()
- func (x *DeletePodApiRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePodApiRequest) Reset()
- func (x *DeletePodApiRequest) String() string
- func (m *DeletePodApiRequest) Validate() error
- func (m *DeletePodApiRequest) ValidateAll() error
- type DeletePodApiRequestMultiError
- type DeletePodApiRequestValidationError
- func (e DeletePodApiRequestValidationError) Cause() error
- func (e DeletePodApiRequestValidationError) Error() string
- func (e DeletePodApiRequestValidationError) ErrorName() string
- func (e DeletePodApiRequestValidationError) Field() string
- func (e DeletePodApiRequestValidationError) Key() bool
- func (e DeletePodApiRequestValidationError) Reason() string
- type GetPodApiReply
- func (*GetPodApiReply) Descriptor() ([]byte, []int)deprecated
- func (*GetPodApiReply) ProtoMessage()
- func (x *GetPodApiReply) ProtoReflect() protoreflect.Message
- func (x *GetPodApiReply) Reset()
- func (x *GetPodApiReply) String() string
- func (m *GetPodApiReply) Validate() error
- func (m *GetPodApiReply) ValidateAll() error
- type GetPodApiReplyMultiError
- type GetPodApiReplyValidationError
- func (e GetPodApiReplyValidationError) Cause() error
- func (e GetPodApiReplyValidationError) Error() string
- func (e GetPodApiReplyValidationError) ErrorName() string
- func (e GetPodApiReplyValidationError) Field() string
- func (e GetPodApiReplyValidationError) Key() bool
- func (e GetPodApiReplyValidationError) Reason() string
- type GetPodApiRequest
- func (*GetPodApiRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetPodApiRequest) ProtoMessage()
- func (x *GetPodApiRequest) ProtoReflect() protoreflect.Message
- func (x *GetPodApiRequest) Reset()
- func (x *GetPodApiRequest) String() string
- func (m *GetPodApiRequest) Validate() error
- func (m *GetPodApiRequest) ValidateAll() error
- type GetPodApiRequestMultiError
- type GetPodApiRequestValidationError
- func (e GetPodApiRequestValidationError) Cause() error
- func (e GetPodApiRequestValidationError) Error() string
- func (e GetPodApiRequestValidationError) ErrorName() string
- func (e GetPodApiRequestValidationError) Field() string
- func (e GetPodApiRequestValidationError) Key() bool
- func (e GetPodApiRequestValidationError) Reason() string
- type ListPodApiReply
- func (*ListPodApiReply) Descriptor() ([]byte, []int)deprecated
- func (*ListPodApiReply) ProtoMessage()
- func (x *ListPodApiReply) ProtoReflect() protoreflect.Message
- func (x *ListPodApiReply) Reset()
- func (x *ListPodApiReply) String() string
- func (m *ListPodApiReply) Validate() error
- func (m *ListPodApiReply) ValidateAll() error
- type ListPodApiReplyMultiError
- type ListPodApiReplyValidationError
- func (e ListPodApiReplyValidationError) Cause() error
- func (e ListPodApiReplyValidationError) Error() string
- func (e ListPodApiReplyValidationError) ErrorName() string
- func (e ListPodApiReplyValidationError) Field() string
- func (e ListPodApiReplyValidationError) Key() bool
- func (e ListPodApiReplyValidationError) Reason() string
- type ListPodApiRequest
- func (*ListPodApiRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListPodApiRequest) ProtoMessage()
- func (x *ListPodApiRequest) ProtoReflect() protoreflect.Message
- func (x *ListPodApiRequest) Reset()
- func (x *ListPodApiRequest) String() string
- func (m *ListPodApiRequest) Validate() error
- func (m *ListPodApiRequest) ValidateAll() error
- type ListPodApiRequestMultiError
- type ListPodApiRequestValidationError
- func (e ListPodApiRequestValidationError) Cause() error
- func (e ListPodApiRequestValidationError) Error() string
- func (e ListPodApiRequestValidationError) ErrorName() string
- func (e ListPodApiRequestValidationError) Field() string
- func (e ListPodApiRequestValidationError) Key() bool
- func (e ListPodApiRequestValidationError) Reason() string
- type Pair
- func (*Pair) Descriptor() ([]byte, []int)deprecated
- func (x *Pair) GetKey() string
- func (x *Pair) GetValues() []string
- func (*Pair) ProtoMessage()
- func (x *Pair) ProtoReflect() protoreflect.Message
- func (x *Pair) Reset()
- func (x *Pair) String() string
- func (m *Pair) Validate() error
- func (m *Pair) ValidateAll() error
- type PairMultiError
- type PairValidationError
- type PodApiClient
- type PodApiHTTPClient
- type PodApiHTTPClientImpl
- func (c *PodApiHTTPClientImpl) AddPod(ctx context.Context, in *v1.PodInfo, opts ...http.CallOption) (*v1.Response, error)
- func (c *PodApiHTTPClientImpl) Call(ctx context.Context, in *Request, opts ...http.CallOption) (*Response, error)
- func (c *PodApiHTTPClientImpl) DeletePodById(ctx context.Context, in *v1.PodId, opts ...http.CallOption) (*v1.Response, error)
- func (c *PodApiHTTPClientImpl) FindPodById(ctx context.Context, in *v1.PodId, opts ...http.CallOption) (*v1.PodInfo, error)
- func (c *PodApiHTTPClientImpl) UpdatePod(ctx context.Context, in *v1.PodInfo, opts ...http.CallOption) (*v1.Response, error)
- type PodApiHTTPServer
- type PodApiServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetBody() string
- func (x *Request) GetGet() map[string]*Pair
- func (x *Request) GetHeader() map[string]*Pair
- func (x *Request) GetMethod() string
- func (x *Request) GetPath() string
- func (x *Request) GetPost() map[string]*Pair
- func (x *Request) GetUrl() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- func (m *Request) Validate() error
- func (m *Request) ValidateAll() error
- type RequestMultiError
- type RequestValidationError
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetBody() string
- func (x *Response) GetHeader() map[string]*Pair
- func (x *Response) GetStatusCode() int32
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- func (m *Response) Validate() error
- func (m *Response) ValidateAll() error
- type ResponseMultiError
- type ResponseValidationError
- type UnimplementedPodApiServer
- func (UnimplementedPodApiServer) AddPod(context.Context, *v1.PodInfo) (*v1.Response, error)
- func (UnimplementedPodApiServer) Call(context.Context, *Request) (*Response, error)
- func (UnimplementedPodApiServer) DeletePodById(context.Context, *v1.PodId) (*v1.Response, error)
- func (UnimplementedPodApiServer) FindPodById(context.Context, *v1.PodId) (*v1.PodInfo, error)
- func (UnimplementedPodApiServer) UpdatePod(context.Context, *v1.PodInfo) (*v1.Response, error)
- type UnsafePodApiServer
Constants ¶
const ( PodApi_FindPodById_FullMethodName = "/api.podApi.v1.PodApi/FindPodById" PodApi_AddPod_FullMethodName = "/api.podApi.v1.PodApi/AddPod" PodApi_DeletePodById_FullMethodName = "/api.podApi.v1.PodApi/DeletePodById" PodApi_UpdatePod_FullMethodName = "/api.podApi.v1.PodApi/UpdatePod" PodApi_Call_FullMethodName = "/api.podApi.v1.PodApi/Call" )
const OperationPodApiAddPod = "/api.podApi.v1.PodApi/AddPod"
const OperationPodApiCall = "/api.podApi.v1.PodApi/Call"
const OperationPodApiDeletePodById = "/api.podApi.v1.PodApi/DeletePodById"
const OperationPodApiFindPodById = "/api.podApi.v1.PodApi/FindPodById"
const OperationPodApiUpdatePod = "/api.podApi.v1.PodApi/UpdatePod"
Variables ¶
var File_podapi_v1_podapi_proto protoreflect.FileDescriptor
var PodApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.podApi.v1.PodApi", HandlerType: (*PodApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindPodById", Handler: _PodApi_FindPodById_Handler, }, { MethodName: "AddPod", Handler: _PodApi_AddPod_Handler, }, { MethodName: "DeletePodById", Handler: _PodApi_DeletePodById_Handler, }, { MethodName: "UpdatePod", Handler: _PodApi_UpdatePod_Handler, }, { MethodName: "Call", Handler: _PodApi_Call_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "podapi/v1/podapi.proto", }
PodApi_ServiceDesc is the grpc.ServiceDesc for PodApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPodApiHTTPServer ¶
func RegisterPodApiHTTPServer(s *http.Server, srv PodApiHTTPServer)
func RegisterPodApiServer ¶
func RegisterPodApiServer(s grpc.ServiceRegistrar, srv PodApiServer)
Types ¶
type DeletePodApiReply ¶
type DeletePodApiReply struct {
// contains filtered or unexported fields
}
func (*DeletePodApiReply) Descriptor
deprecated
func (*DeletePodApiReply) Descriptor() ([]byte, []int)
Deprecated: Use DeletePodApiReply.ProtoReflect.Descriptor instead.
func (*DeletePodApiReply) ProtoMessage ¶
func (*DeletePodApiReply) ProtoMessage()
func (*DeletePodApiReply) ProtoReflect ¶
func (x *DeletePodApiReply) ProtoReflect() protoreflect.Message
func (*DeletePodApiReply) Reset ¶
func (x *DeletePodApiReply) Reset()
func (*DeletePodApiReply) String ¶
func (x *DeletePodApiReply) String() string
func (*DeletePodApiReply) Validate ¶
func (m *DeletePodApiReply) Validate() error
Validate checks the field values on DeletePodApiReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeletePodApiReply) ValidateAll ¶
func (m *DeletePodApiReply) ValidateAll() error
ValidateAll checks the field values on DeletePodApiReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeletePodApiReplyMultiError, or nil if none found.
type DeletePodApiReplyMultiError ¶
type DeletePodApiReplyMultiError []error
DeletePodApiReplyMultiError is an error wrapping multiple validation errors returned by DeletePodApiReply.ValidateAll() if the designated constraints aren't met.
func (DeletePodApiReplyMultiError) AllErrors ¶
func (m DeletePodApiReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeletePodApiReplyMultiError) Error ¶
func (m DeletePodApiReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeletePodApiReplyValidationError ¶
type DeletePodApiReplyValidationError struct {
// contains filtered or unexported fields
}
DeletePodApiReplyValidationError is the validation error returned by DeletePodApiReply.Validate if the designated constraints aren't met.
func (DeletePodApiReplyValidationError) Cause ¶
func (e DeletePodApiReplyValidationError) Cause() error
Cause function returns cause value.
func (DeletePodApiReplyValidationError) Error ¶
func (e DeletePodApiReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeletePodApiReplyValidationError) ErrorName ¶
func (e DeletePodApiReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeletePodApiReplyValidationError) Field ¶
func (e DeletePodApiReplyValidationError) Field() string
Field function returns field value.
func (DeletePodApiReplyValidationError) Key ¶
func (e DeletePodApiReplyValidationError) Key() bool
Key function returns key value.
func (DeletePodApiReplyValidationError) Reason ¶
func (e DeletePodApiReplyValidationError) Reason() string
Reason function returns reason value.
type DeletePodApiRequest ¶
type DeletePodApiRequest struct {
// contains filtered or unexported fields
}
func (*DeletePodApiRequest) Descriptor
deprecated
func (*DeletePodApiRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePodApiRequest.ProtoReflect.Descriptor instead.
func (*DeletePodApiRequest) ProtoMessage ¶
func (*DeletePodApiRequest) ProtoMessage()
func (*DeletePodApiRequest) ProtoReflect ¶
func (x *DeletePodApiRequest) ProtoReflect() protoreflect.Message
func (*DeletePodApiRequest) Reset ¶
func (x *DeletePodApiRequest) Reset()
func (*DeletePodApiRequest) String ¶
func (x *DeletePodApiRequest) String() string
func (*DeletePodApiRequest) Validate ¶
func (m *DeletePodApiRequest) Validate() error
Validate checks the field values on DeletePodApiRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeletePodApiRequest) ValidateAll ¶
func (m *DeletePodApiRequest) ValidateAll() error
ValidateAll checks the field values on DeletePodApiRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeletePodApiRequestMultiError, or nil if none found.
type DeletePodApiRequestMultiError ¶
type DeletePodApiRequestMultiError []error
DeletePodApiRequestMultiError is an error wrapping multiple validation errors returned by DeletePodApiRequest.ValidateAll() if the designated constraints aren't met.
func (DeletePodApiRequestMultiError) AllErrors ¶
func (m DeletePodApiRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeletePodApiRequestMultiError) Error ¶
func (m DeletePodApiRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeletePodApiRequestValidationError ¶
type DeletePodApiRequestValidationError struct {
// contains filtered or unexported fields
}
DeletePodApiRequestValidationError is the validation error returned by DeletePodApiRequest.Validate if the designated constraints aren't met.
func (DeletePodApiRequestValidationError) Cause ¶
func (e DeletePodApiRequestValidationError) Cause() error
Cause function returns cause value.
func (DeletePodApiRequestValidationError) Error ¶
func (e DeletePodApiRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeletePodApiRequestValidationError) ErrorName ¶
func (e DeletePodApiRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeletePodApiRequestValidationError) Field ¶
func (e DeletePodApiRequestValidationError) Field() string
Field function returns field value.
func (DeletePodApiRequestValidationError) Key ¶
func (e DeletePodApiRequestValidationError) Key() bool
Key function returns key value.
func (DeletePodApiRequestValidationError) Reason ¶
func (e DeletePodApiRequestValidationError) Reason() string
Reason function returns reason value.
type GetPodApiReply ¶
type GetPodApiReply struct {
// contains filtered or unexported fields
}
func (*GetPodApiReply) Descriptor
deprecated
func (*GetPodApiReply) Descriptor() ([]byte, []int)
Deprecated: Use GetPodApiReply.ProtoReflect.Descriptor instead.
func (*GetPodApiReply) ProtoMessage ¶
func (*GetPodApiReply) ProtoMessage()
func (*GetPodApiReply) ProtoReflect ¶
func (x *GetPodApiReply) ProtoReflect() protoreflect.Message
func (*GetPodApiReply) Reset ¶
func (x *GetPodApiReply) Reset()
func (*GetPodApiReply) String ¶
func (x *GetPodApiReply) String() string
func (*GetPodApiReply) Validate ¶
func (m *GetPodApiReply) Validate() error
Validate checks the field values on GetPodApiReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetPodApiReply) ValidateAll ¶
func (m *GetPodApiReply) ValidateAll() error
ValidateAll checks the field values on GetPodApiReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetPodApiReplyMultiError, or nil if none found.
type GetPodApiReplyMultiError ¶
type GetPodApiReplyMultiError []error
GetPodApiReplyMultiError is an error wrapping multiple validation errors returned by GetPodApiReply.ValidateAll() if the designated constraints aren't met.
func (GetPodApiReplyMultiError) AllErrors ¶
func (m GetPodApiReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPodApiReplyMultiError) Error ¶
func (m GetPodApiReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPodApiReplyValidationError ¶
type GetPodApiReplyValidationError struct {
// contains filtered or unexported fields
}
GetPodApiReplyValidationError is the validation error returned by GetPodApiReply.Validate if the designated constraints aren't met.
func (GetPodApiReplyValidationError) Cause ¶
func (e GetPodApiReplyValidationError) Cause() error
Cause function returns cause value.
func (GetPodApiReplyValidationError) Error ¶
func (e GetPodApiReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetPodApiReplyValidationError) ErrorName ¶
func (e GetPodApiReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetPodApiReplyValidationError) Field ¶
func (e GetPodApiReplyValidationError) Field() string
Field function returns field value.
func (GetPodApiReplyValidationError) Key ¶
func (e GetPodApiReplyValidationError) Key() bool
Key function returns key value.
func (GetPodApiReplyValidationError) Reason ¶
func (e GetPodApiReplyValidationError) Reason() string
Reason function returns reason value.
type GetPodApiRequest ¶
type GetPodApiRequest struct {
// contains filtered or unexported fields
}
func (*GetPodApiRequest) Descriptor
deprecated
func (*GetPodApiRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPodApiRequest.ProtoReflect.Descriptor instead.
func (*GetPodApiRequest) ProtoMessage ¶
func (*GetPodApiRequest) ProtoMessage()
func (*GetPodApiRequest) ProtoReflect ¶
func (x *GetPodApiRequest) ProtoReflect() protoreflect.Message
func (*GetPodApiRequest) Reset ¶
func (x *GetPodApiRequest) Reset()
func (*GetPodApiRequest) String ¶
func (x *GetPodApiRequest) String() string
func (*GetPodApiRequest) Validate ¶
func (m *GetPodApiRequest) Validate() error
Validate checks the field values on GetPodApiRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetPodApiRequest) ValidateAll ¶
func (m *GetPodApiRequest) ValidateAll() error
ValidateAll checks the field values on GetPodApiRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetPodApiRequestMultiError, or nil if none found.
type GetPodApiRequestMultiError ¶
type GetPodApiRequestMultiError []error
GetPodApiRequestMultiError is an error wrapping multiple validation errors returned by GetPodApiRequest.ValidateAll() if the designated constraints aren't met.
func (GetPodApiRequestMultiError) AllErrors ¶
func (m GetPodApiRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPodApiRequestMultiError) Error ¶
func (m GetPodApiRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPodApiRequestValidationError ¶
type GetPodApiRequestValidationError struct {
// contains filtered or unexported fields
}
GetPodApiRequestValidationError is the validation error returned by GetPodApiRequest.Validate if the designated constraints aren't met.
func (GetPodApiRequestValidationError) Cause ¶
func (e GetPodApiRequestValidationError) Cause() error
Cause function returns cause value.
func (GetPodApiRequestValidationError) Error ¶
func (e GetPodApiRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetPodApiRequestValidationError) ErrorName ¶
func (e GetPodApiRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetPodApiRequestValidationError) Field ¶
func (e GetPodApiRequestValidationError) Field() string
Field function returns field value.
func (GetPodApiRequestValidationError) Key ¶
func (e GetPodApiRequestValidationError) Key() bool
Key function returns key value.
func (GetPodApiRequestValidationError) Reason ¶
func (e GetPodApiRequestValidationError) Reason() string
Reason function returns reason value.
type ListPodApiReply ¶
type ListPodApiReply struct {
// contains filtered or unexported fields
}
func (*ListPodApiReply) Descriptor
deprecated
func (*ListPodApiReply) Descriptor() ([]byte, []int)
Deprecated: Use ListPodApiReply.ProtoReflect.Descriptor instead.
func (*ListPodApiReply) ProtoMessage ¶
func (*ListPodApiReply) ProtoMessage()
func (*ListPodApiReply) ProtoReflect ¶
func (x *ListPodApiReply) ProtoReflect() protoreflect.Message
func (*ListPodApiReply) Reset ¶
func (x *ListPodApiReply) Reset()
func (*ListPodApiReply) String ¶
func (x *ListPodApiReply) String() string
func (*ListPodApiReply) Validate ¶
func (m *ListPodApiReply) Validate() error
Validate checks the field values on ListPodApiReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListPodApiReply) ValidateAll ¶
func (m *ListPodApiReply) ValidateAll() error
ValidateAll checks the field values on ListPodApiReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListPodApiReplyMultiError, or nil if none found.
type ListPodApiReplyMultiError ¶
type ListPodApiReplyMultiError []error
ListPodApiReplyMultiError is an error wrapping multiple validation errors returned by ListPodApiReply.ValidateAll() if the designated constraints aren't met.
func (ListPodApiReplyMultiError) AllErrors ¶
func (m ListPodApiReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListPodApiReplyMultiError) Error ¶
func (m ListPodApiReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListPodApiReplyValidationError ¶
type ListPodApiReplyValidationError struct {
// contains filtered or unexported fields
}
ListPodApiReplyValidationError is the validation error returned by ListPodApiReply.Validate if the designated constraints aren't met.
func (ListPodApiReplyValidationError) Cause ¶
func (e ListPodApiReplyValidationError) Cause() error
Cause function returns cause value.
func (ListPodApiReplyValidationError) Error ¶
func (e ListPodApiReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListPodApiReplyValidationError) ErrorName ¶
func (e ListPodApiReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListPodApiReplyValidationError) Field ¶
func (e ListPodApiReplyValidationError) Field() string
Field function returns field value.
func (ListPodApiReplyValidationError) Key ¶
func (e ListPodApiReplyValidationError) Key() bool
Key function returns key value.
func (ListPodApiReplyValidationError) Reason ¶
func (e ListPodApiReplyValidationError) Reason() string
Reason function returns reason value.
type ListPodApiRequest ¶
type ListPodApiRequest struct {
// contains filtered or unexported fields
}
func (*ListPodApiRequest) Descriptor
deprecated
func (*ListPodApiRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPodApiRequest.ProtoReflect.Descriptor instead.
func (*ListPodApiRequest) ProtoMessage ¶
func (*ListPodApiRequest) ProtoMessage()
func (*ListPodApiRequest) ProtoReflect ¶
func (x *ListPodApiRequest) ProtoReflect() protoreflect.Message
func (*ListPodApiRequest) Reset ¶
func (x *ListPodApiRequest) Reset()
func (*ListPodApiRequest) String ¶
func (x *ListPodApiRequest) String() string
func (*ListPodApiRequest) Validate ¶
func (m *ListPodApiRequest) Validate() error
Validate checks the field values on ListPodApiRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListPodApiRequest) ValidateAll ¶
func (m *ListPodApiRequest) ValidateAll() error
ValidateAll checks the field values on ListPodApiRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListPodApiRequestMultiError, or nil if none found.
type ListPodApiRequestMultiError ¶
type ListPodApiRequestMultiError []error
ListPodApiRequestMultiError is an error wrapping multiple validation errors returned by ListPodApiRequest.ValidateAll() if the designated constraints aren't met.
func (ListPodApiRequestMultiError) AllErrors ¶
func (m ListPodApiRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListPodApiRequestMultiError) Error ¶
func (m ListPodApiRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListPodApiRequestValidationError ¶
type ListPodApiRequestValidationError struct {
// contains filtered or unexported fields
}
ListPodApiRequestValidationError is the validation error returned by ListPodApiRequest.Validate if the designated constraints aren't met.
func (ListPodApiRequestValidationError) Cause ¶
func (e ListPodApiRequestValidationError) Cause() error
Cause function returns cause value.
func (ListPodApiRequestValidationError) Error ¶
func (e ListPodApiRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListPodApiRequestValidationError) ErrorName ¶
func (e ListPodApiRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListPodApiRequestValidationError) Field ¶
func (e ListPodApiRequestValidationError) Field() string
Field function returns field value.
func (ListPodApiRequestValidationError) Key ¶
func (e ListPodApiRequestValidationError) Key() bool
Key function returns key value.
func (ListPodApiRequestValidationError) Reason ¶
func (e ListPodApiRequestValidationError) Reason() string
Reason function returns reason value.
type Pair ¶
type Pair struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*Pair) Descriptor
deprecated
func (*Pair) ProtoMessage ¶
func (*Pair) ProtoMessage()
func (*Pair) ProtoReflect ¶
func (x *Pair) ProtoReflect() protoreflect.Message
func (*Pair) Validate ¶
Validate checks the field values on Pair with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Pair) ValidateAll ¶
ValidateAll checks the field values on Pair with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PairMultiError, or nil if none found.
type PairMultiError ¶
type PairMultiError []error
PairMultiError is an error wrapping multiple validation errors returned by Pair.ValidateAll() if the designated constraints aren't met.
func (PairMultiError) AllErrors ¶
func (m PairMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PairMultiError) Error ¶
func (m PairMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PairValidationError ¶
type PairValidationError struct {
// contains filtered or unexported fields
}
PairValidationError is the validation error returned by Pair.Validate if the designated constraints aren't met.
func (PairValidationError) Cause ¶
func (e PairValidationError) Cause() error
Cause function returns cause value.
func (PairValidationError) Error ¶
func (e PairValidationError) Error() string
Error satisfies the builtin error interface
func (PairValidationError) ErrorName ¶
func (e PairValidationError) ErrorName() string
ErrorName returns error name.
func (PairValidationError) Field ¶
func (e PairValidationError) Field() string
Field function returns field value.
func (PairValidationError) Key ¶
func (e PairValidationError) Key() bool
Key function returns key value.
func (PairValidationError) Reason ¶
func (e PairValidationError) Reason() string
Reason function returns reason value.
type PodApiClient ¶
type PodApiClient interface { FindPodById(ctx context.Context, in *v1.PodId, opts ...grpc.CallOption) (*v1.PodInfo, error) AddPod(ctx context.Context, in *v1.PodInfo, opts ...grpc.CallOption) (*v1.Response, error) DeletePodById(ctx context.Context, in *v1.PodId, opts ...grpc.CallOption) (*v1.Response, error) UpdatePod(ctx context.Context, in *v1.PodInfo, opts ...grpc.CallOption) (*v1.Response, error) // 默认接口 Call(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) }
PodApiClient is the client API for PodApi service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPodApiClient ¶
func NewPodApiClient(cc grpc.ClientConnInterface) PodApiClient
type PodApiHTTPClient ¶
type PodApiHTTPClient interface { AddPod(ctx context.Context, req *v1.PodInfo, opts ...http.CallOption) (rsp *v1.Response, err error) Call(ctx context.Context, req *Request, opts ...http.CallOption) (rsp *Response, err error) DeletePodById(ctx context.Context, req *v1.PodId, opts ...http.CallOption) (rsp *v1.Response, err error) FindPodById(ctx context.Context, req *v1.PodId, opts ...http.CallOption) (rsp *v1.PodInfo, err error) UpdatePod(ctx context.Context, req *v1.PodInfo, opts ...http.CallOption) (rsp *v1.Response, err error) }
func NewPodApiHTTPClient ¶
func NewPodApiHTTPClient(client *http.Client) PodApiHTTPClient
type PodApiHTTPClientImpl ¶
type PodApiHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*PodApiHTTPClientImpl) AddPod ¶
func (c *PodApiHTTPClientImpl) AddPod(ctx context.Context, in *v1.PodInfo, opts ...http.CallOption) (*v1.Response, error)
func (*PodApiHTTPClientImpl) Call ¶
func (c *PodApiHTTPClientImpl) Call(ctx context.Context, in *Request, opts ...http.CallOption) (*Response, error)
func (*PodApiHTTPClientImpl) DeletePodById ¶
func (c *PodApiHTTPClientImpl) DeletePodById(ctx context.Context, in *v1.PodId, opts ...http.CallOption) (*v1.Response, error)
func (*PodApiHTTPClientImpl) FindPodById ¶
func (c *PodApiHTTPClientImpl) FindPodById(ctx context.Context, in *v1.PodId, opts ...http.CallOption) (*v1.PodInfo, error)
type PodApiHTTPServer ¶
type PodApiHTTPServer interface { AddPod(context.Context, *v1.PodInfo) (*v1.Response, error) // Call默认接口 Call(context.Context, *Request) (*Response, error) DeletePodById(context.Context, *v1.PodId) (*v1.Response, error) FindPodById(context.Context, *v1.PodId) (*v1.PodInfo, error) UpdatePod(context.Context, *v1.PodInfo) (*v1.Response, error) }
type PodApiServer ¶
type PodApiServer interface { FindPodById(context.Context, *v1.PodId) (*v1.PodInfo, error) AddPod(context.Context, *v1.PodInfo) (*v1.Response, error) DeletePodById(context.Context, *v1.PodId) (*v1.Response, error) UpdatePod(context.Context, *v1.PodInfo) (*v1.Response, error) // 默认接口 Call(context.Context, *Request) (*Response, error) // contains filtered or unexported methods }
PodApiServer is the server API for PodApi service. All implementations must embed UnimplementedPodApiServer for forward compatibility
type Request ¶
type Request struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Header map[string]*Pair `` /* 153-byte string literal not displayed */ Get map[string]*Pair `` /* 147-byte string literal not displayed */ Post map[string]*Pair `` /* 149-byte string literal not displayed */ Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
func (*Request) Validate ¶
Validate checks the field values on Request with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Request) ValidateAll ¶
ValidateAll checks the field values on Request with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RequestMultiError, or nil if none found.
type RequestMultiError ¶
type RequestMultiError []error
RequestMultiError is an error wrapping multiple validation errors returned by Request.ValidateAll() if the designated constraints aren't met.
func (RequestMultiError) AllErrors ¶
func (m RequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RequestMultiError) Error ¶
func (m RequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RequestValidationError ¶
type RequestValidationError struct {
// contains filtered or unexported fields
}
RequestValidationError is the validation error returned by Request.Validate if the designated constraints aren't met.
func (RequestValidationError) Cause ¶
func (e RequestValidationError) Cause() error
Cause function returns cause value.
func (RequestValidationError) Error ¶
func (e RequestValidationError) Error() string
Error satisfies the builtin error interface
func (RequestValidationError) ErrorName ¶
func (e RequestValidationError) ErrorName() string
ErrorName returns error name.
func (RequestValidationError) Field ¶
func (e RequestValidationError) Field() string
Field function returns field value.
func (RequestValidationError) Key ¶
func (e RequestValidationError) Key() bool
Key function returns key value.
func (RequestValidationError) Reason ¶
func (e RequestValidationError) Reason() string
Reason function returns reason value.
type Response ¶
type Response struct { StatusCode int32 `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` Header map[string]*Pair `` /* 153-byte string literal not displayed */ Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetStatusCode ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
func (*Response) Validate ¶
Validate checks the field values on Response with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Response) ValidateAll ¶
ValidateAll checks the field values on Response with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResponseMultiError, or nil if none found.
type ResponseMultiError ¶
type ResponseMultiError []error
ResponseMultiError is an error wrapping multiple validation errors returned by Response.ValidateAll() if the designated constraints aren't met.
func (ResponseMultiError) AllErrors ¶
func (m ResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResponseMultiError) Error ¶
func (m ResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResponseValidationError ¶
type ResponseValidationError struct {
// contains filtered or unexported fields
}
ResponseValidationError is the validation error returned by Response.Validate if the designated constraints aren't met.
func (ResponseValidationError) Cause ¶
func (e ResponseValidationError) Cause() error
Cause function returns cause value.
func (ResponseValidationError) Error ¶
func (e ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseValidationError) ErrorName ¶
func (e ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseValidationError) Field ¶
func (e ResponseValidationError) Field() string
Field function returns field value.
func (ResponseValidationError) Key ¶
func (e ResponseValidationError) Key() bool
Key function returns key value.
func (ResponseValidationError) Reason ¶
func (e ResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedPodApiServer ¶
type UnimplementedPodApiServer struct { }
UnimplementedPodApiServer must be embedded to have forward compatible implementations.
func (UnimplementedPodApiServer) DeletePodById ¶
func (UnimplementedPodApiServer) FindPodById ¶
type UnsafePodApiServer ¶
type UnsafePodApiServer interface {
// contains filtered or unexported methods
}
UnsafePodApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PodApiServer will result in compilation errors.