v1

package
v0.0.0-...-6fd52d9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationPodApiAddPod = "/api.podApi.v1.PodApi/AddPod"
View Source
const OperationPodApiCall = "/api.podApi.v1.PodApi/Call"
View Source
const OperationPodApiDeletePodById = "/api.podApi.v1.PodApi/DeletePodById"
View Source
const OperationPodApiFindPodById = "/api.podApi.v1.PodApi/FindPodById"
View Source
const OperationPodApiUpdatePod = "/api.podApi.v1.PodApi/UpdatePod"

Variables

View Source
var File_podapi_v1_podapi_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (DeletePodApiReplyValidationError) Error

Error satisfies the builtin error interface

func (DeletePodApiReplyValidationError) ErrorName

ErrorName returns error name.

func (DeletePodApiReplyValidationError) Field

Field function returns field value.

func (DeletePodApiReplyValidationError) Key

Key function returns key value.

func (DeletePodApiReplyValidationError) Reason

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

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

Cause function returns cause value.

func (DeletePodApiRequestValidationError) Error

Error satisfies the builtin error interface

func (DeletePodApiRequestValidationError) ErrorName

ErrorName returns error name.

func (DeletePodApiRequestValidationError) Field

Field function returns field value.

func (DeletePodApiRequestValidationError) Key

Key function returns key value.

func (DeletePodApiRequestValidationError) Reason

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

Cause function returns cause value.

func (GetPodApiReplyValidationError) Error

Error satisfies the builtin error interface

func (GetPodApiReplyValidationError) ErrorName

func (e GetPodApiReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetPodApiReplyValidationError) Field

Field function returns field value.

func (GetPodApiReplyValidationError) Key

Key function returns key value.

func (GetPodApiReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetPodApiRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPodApiRequestValidationError) ErrorName

ErrorName returns error name.

func (GetPodApiRequestValidationError) Field

Field function returns field value.

func (GetPodApiRequestValidationError) Key

Key function returns key value.

func (GetPodApiRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListPodApiReplyValidationError) Error

Error satisfies the builtin error interface

func (ListPodApiReplyValidationError) ErrorName

func (e ListPodApiReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListPodApiReplyValidationError) Field

Field function returns field value.

func (ListPodApiReplyValidationError) Key

Key function returns key value.

func (ListPodApiReplyValidationError) Reason

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

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

Cause function returns cause value.

func (ListPodApiRequestValidationError) Error

Error satisfies the builtin error interface

func (ListPodApiRequestValidationError) ErrorName

ErrorName returns error name.

func (ListPodApiRequestValidationError) Field

Field function returns field value.

func (ListPodApiRequestValidationError) Key

Key function returns key value.

func (ListPodApiRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Pair.ProtoReflect.Descriptor instead.

func (*Pair) GetKey

func (x *Pair) GetKey() string

func (*Pair) GetValues

func (x *Pair) GetValues() []string

func (*Pair) ProtoMessage

func (*Pair) ProtoMessage()

func (*Pair) ProtoReflect

func (x *Pair) ProtoReflect() protoreflect.Message

func (*Pair) Reset

func (x *Pair) Reset()

func (*Pair) String

func (x *Pair) String() string

func (*Pair) Validate

func (m *Pair) Validate() error

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

func (m *Pair) ValidateAll() error

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)

func (*PodApiHTTPClientImpl) UpdatePod

func (c *PodApiHTTPClientImpl) UpdatePod(ctx context.Context, in *v1.PodInfo, opts ...http.CallOption) (*v1.Response, 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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetBody

func (x *Request) GetBody() string

func (*Request) GetGet

func (x *Request) GetGet() map[string]*Pair

func (*Request) GetHeader

func (x *Request) GetHeader() map[string]*Pair

func (*Request) GetMethod

func (x *Request) GetMethod() string

func (*Request) GetPath

func (x *Request) GetPath() string

func (*Request) GetPost

func (x *Request) GetPost() map[string]*Pair

func (*Request) GetUrl

func (x *Request) GetUrl() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

func (*Request) Validate

func (m *Request) Validate() error

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

func (m *Request) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBody

func (x *Response) GetBody() string

func (*Response) GetHeader

func (x *Response) GetHeader() map[string]*Pair

func (*Response) GetStatusCode

func (x *Response) GetStatusCode() int32

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

func (*Response) Validate

func (m *Response) Validate() error

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

func (m *Response) ValidateAll() error

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) AddPod

func (UnimplementedPodApiServer) Call

func (UnimplementedPodApiServer) DeletePodById

func (UnimplementedPodApiServer) FindPodById

func (UnimplementedPodApiServer) UpdatePod

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.

Jump to

Keyboard shortcuts

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