Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddServerReply
- func (*AddServerReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddServerReply) GetId() uint32
- func (*AddServerReply) ProtoMessage()
- func (x *AddServerReply) ProtoReflect() protoreflect.Message
- func (x *AddServerReply) Reset()
- func (x *AddServerReply) String() string
- func (m *AddServerReply) Validate() error
- func (m *AddServerReply) ValidateAll() error
- type AddServerReplyMultiError
- type AddServerReplyValidationError
- func (e AddServerReplyValidationError) Cause() error
- func (e AddServerReplyValidationError) Error() string
- func (e AddServerReplyValidationError) ErrorName() string
- func (e AddServerReplyValidationError) Field() string
- func (e AddServerReplyValidationError) Key() bool
- func (e AddServerReplyValidationError) Reason() string
- type AddServerRequest
- func (*AddServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddServerRequest) GetDescription() string
- func (x *AddServerRequest) GetKeyword() string
- func (x *AddServerRequest) GetName() string
- func (*AddServerRequest) ProtoMessage()
- func (x *AddServerRequest) ProtoReflect() protoreflect.Message
- func (x *AddServerRequest) Reset()
- func (x *AddServerRequest) String() string
- func (m *AddServerRequest) Validate() error
- func (m *AddServerRequest) ValidateAll() error
- type AddServerRequestMultiError
- type AddServerRequestValidationError
- func (e AddServerRequestValidationError) Cause() error
- func (e AddServerRequestValidationError) Error() string
- func (e AddServerRequestValidationError) ErrorName() string
- func (e AddServerRequestValidationError) Field() string
- func (e AddServerRequestValidationError) Key() bool
- func (e AddServerRequestValidationError) Reason() string
- type DeleteServerRequest
- func (*DeleteServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteServerRequest) GetId() uint32
- func (*DeleteServerRequest) ProtoMessage()
- func (x *DeleteServerRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteServerRequest) Reset()
- func (x *DeleteServerRequest) String() string
- func (m *DeleteServerRequest) Validate() error
- func (m *DeleteServerRequest) ValidateAll() error
- type DeleteServerRequestMultiError
- type DeleteServerRequestValidationError
- func (e DeleteServerRequestValidationError) Cause() error
- func (e DeleteServerRequestValidationError) Error() string
- func (e DeleteServerRequestValidationError) ErrorName() string
- func (e DeleteServerRequestValidationError) Field() string
- func (e DeleteServerRequestValidationError) Key() bool
- func (e DeleteServerRequestValidationError) Reason() string
- type GetServerReply
- func (*GetServerReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetServerReply) GetServer() *Server
- func (*GetServerReply) ProtoMessage()
- func (x *GetServerReply) ProtoReflect() protoreflect.Message
- func (x *GetServerReply) Reset()
- func (x *GetServerReply) String() string
- func (m *GetServerReply) Validate() error
- func (m *GetServerReply) ValidateAll() error
- type GetServerReplyMultiError
- type GetServerReplyValidationError
- func (e GetServerReplyValidationError) Cause() error
- func (e GetServerReplyValidationError) Error() string
- func (e GetServerReplyValidationError) ErrorName() string
- func (e GetServerReplyValidationError) Field() string
- func (e GetServerReplyValidationError) Key() bool
- func (e GetServerReplyValidationError) Reason() string
- type GetServerRequest
- func (*GetServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetServerRequest) GetId() uint32
- func (*GetServerRequest) ProtoMessage()
- func (x *GetServerRequest) ProtoReflect() protoreflect.Message
- func (x *GetServerRequest) Reset()
- func (x *GetServerRequest) String() string
- func (m *GetServerRequest) Validate() error
- func (m *GetServerRequest) ValidateAll() error
- type GetServerRequestMultiError
- type GetServerRequestValidationError
- func (e GetServerRequestValidationError) Cause() error
- func (e GetServerRequestValidationError) Error() string
- func (e GetServerRequestValidationError) ErrorName() string
- func (e GetServerRequestValidationError) Field() string
- func (e GetServerRequestValidationError) Key() bool
- func (e GetServerRequestValidationError) Reason() string
- type PageServerReply
- func (*PageServerReply) Descriptor() ([]byte, []int)deprecated
- func (x *PageServerReply) GetList() []*Server
- func (x *PageServerReply) GetTotal() uint32
- func (*PageServerReply) ProtoMessage()
- func (x *PageServerReply) ProtoReflect() protoreflect.Message
- func (x *PageServerReply) Reset()
- func (x *PageServerReply) String() string
- func (m *PageServerReply) Validate() error
- func (m *PageServerReply) ValidateAll() error
- type PageServerReplyMultiError
- type PageServerReplyValidationError
- func (e PageServerReplyValidationError) Cause() error
- func (e PageServerReplyValidationError) Error() string
- func (e PageServerReplyValidationError) ErrorName() string
- func (e PageServerReplyValidationError) Field() string
- func (e PageServerReplyValidationError) Key() bool
- func (e PageServerReplyValidationError) Reason() string
- type PageServerRequest
- func (*PageServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageServerRequest) GetKeyword() string
- func (x *PageServerRequest) GetPage() uint32
- func (x *PageServerRequest) GetPageSize() uint32
- func (*PageServerRequest) ProtoMessage()
- func (x *PageServerRequest) ProtoReflect() protoreflect.Message
- func (x *PageServerRequest) Reset()
- func (x *PageServerRequest) String() string
- func (m *PageServerRequest) Validate() error
- func (m *PageServerRequest) ValidateAll() error
- type PageServerRequestMultiError
- type PageServerRequestValidationError
- func (e PageServerRequestValidationError) Cause() error
- func (e PageServerRequestValidationError) Error() string
- func (e PageServerRequestValidationError) ErrorName() string
- func (e PageServerRequestValidationError) Field() string
- func (e PageServerRequestValidationError) Key() bool
- func (e PageServerRequestValidationError) Reason() string
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetCreatedAt() uint32
- func (x *Server) GetDescription() string
- func (x *Server) GetId() uint32
- func (x *Server) GetKeyword() string
- func (x *Server) GetName() string
- func (x *Server) GetUpdatedAt() uint32
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- func (m *Server) Validate() error
- func (m *Server) ValidateAll() error
- type ServerMultiError
- type ServerValidationError
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddServer(ctx context.Context, in *AddServerRequest, opts ...http.CallOption) (*AddServerReply, error)
- func (c *ServiceHTTPClientImpl) DeleteServer(ctx context.Context, in *DeleteServerRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) GetServer(ctx context.Context, in *GetServerRequest, opts ...http.CallOption) (*Server, error)
- func (c *ServiceHTTPClientImpl) PageServer(ctx context.Context, in *PageServerRequest, opts ...http.CallOption) (*PageServerReply, error)
- func (c *ServiceHTTPClientImpl) UpdateServer(ctx context.Context, in *UpdateServerRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type ServiceHTTPServer
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddServer(context.Context, *AddServerRequest) (*AddServerReply, error)
- func (UnimplementedServiceServer) DeleteServer(context.Context, *DeleteServerRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) GetServer(context.Context, *GetServerRequest) (*Server, error)
- func (UnimplementedServiceServer) PageServer(context.Context, *PageServerRequest) (*PageServerReply, error)
- func (UnimplementedServiceServer) UpdateServer(context.Context, *UpdateServerRequest) (*emptypb.Empty, error)
- type UnsafeServiceServer
- type UpdateServerRequest
- func (*UpdateServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateServerRequest) GetDescription() string
- func (x *UpdateServerRequest) GetId() uint32
- func (x *UpdateServerRequest) GetKeyword() string
- func (x *UpdateServerRequest) GetName() string
- func (*UpdateServerRequest) ProtoMessage()
- func (x *UpdateServerRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateServerRequest) Reset()
- func (x *UpdateServerRequest) String() string
- func (m *UpdateServerRequest) Validate() error
- func (m *UpdateServerRequest) ValidateAll() error
- type UpdateServerRequestMultiError
- type UpdateServerRequestValidationError
- func (e UpdateServerRequestValidationError) Cause() error
- func (e UpdateServerRequestValidationError) Error() string
- func (e UpdateServerRequestValidationError) ErrorName() string
- func (e UpdateServerRequestValidationError) Field() string
- func (e UpdateServerRequestValidationError) Key() bool
- func (e UpdateServerRequestValidationError) Reason() string
Constants ¶
const ( Service_PageServer_FullMethodName = "/configure_server.Service/PageServer" Service_GetServer_FullMethodName = "/configure_server.Service/GetServer" Service_AddServer_FullMethodName = "/configure_server.Service/AddServer" Service_UpdateServer_FullMethodName = "/configure_server.Service/UpdateServer" Service_DeleteServer_FullMethodName = "/configure_server.Service/DeleteServer" )
const OperationServiceAddServer = "/configure_server.Service/AddServer"
const OperationServiceDeleteServer = "/configure_server.Service/DeleteServer"
const OperationServiceGetServer = "/configure_server.Service/GetServer"
const OperationServicePageServer = "/configure_server.Service/PageServer"
const OperationServiceUpdateServer = "/configure_server.Service/UpdateServer"
Variables ¶
var File_configure_server_proto protoreflect.FileDescriptor
var File_configure_server_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "configure_server.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PageServer", Handler: _Service_PageServer_Handler, }, { MethodName: "GetServer", Handler: _Service_GetServer_Handler, }, { MethodName: "AddServer", Handler: _Service_AddServer_Handler, }, { MethodName: "UpdateServer", Handler: _Service_UpdateServer_Handler, }, { MethodName: "DeleteServer", Handler: _Service_DeleteServer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "configure_server_service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceHTTPServer ¶
func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AddServerReply ¶
type AddServerReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddServerReply) Descriptor
deprecated
func (*AddServerReply) Descriptor() ([]byte, []int)
Deprecated: Use AddServerReply.ProtoReflect.Descriptor instead.
func (*AddServerReply) GetId ¶
func (x *AddServerReply) GetId() uint32
func (*AddServerReply) ProtoMessage ¶
func (*AddServerReply) ProtoMessage()
func (*AddServerReply) ProtoReflect ¶
func (x *AddServerReply) ProtoReflect() protoreflect.Message
func (*AddServerReply) Reset ¶
func (x *AddServerReply) Reset()
func (*AddServerReply) String ¶
func (x *AddServerReply) String() string
func (*AddServerReply) Validate ¶
func (m *AddServerReply) Validate() error
Validate checks the field values on AddServerReply 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 (*AddServerReply) ValidateAll ¶
func (m *AddServerReply) ValidateAll() error
ValidateAll checks the field values on AddServerReply 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 AddServerReplyMultiError, or nil if none found.
type AddServerReplyMultiError ¶
type AddServerReplyMultiError []error
AddServerReplyMultiError is an error wrapping multiple validation errors returned by AddServerReply.ValidateAll() if the designated constraints aren't met.
func (AddServerReplyMultiError) AllErrors ¶
func (m AddServerReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddServerReplyMultiError) Error ¶
func (m AddServerReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddServerReplyValidationError ¶
type AddServerReplyValidationError struct {
// contains filtered or unexported fields
}
AddServerReplyValidationError is the validation error returned by AddServerReply.Validate if the designated constraints aren't met.
func (AddServerReplyValidationError) Cause ¶
func (e AddServerReplyValidationError) Cause() error
Cause function returns cause value.
func (AddServerReplyValidationError) Error ¶
func (e AddServerReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AddServerReplyValidationError) ErrorName ¶
func (e AddServerReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AddServerReplyValidationError) Field ¶
func (e AddServerReplyValidationError) Field() string
Field function returns field value.
func (AddServerReplyValidationError) Key ¶
func (e AddServerReplyValidationError) Key() bool
Key function returns key value.
func (AddServerReplyValidationError) Reason ¶
func (e AddServerReplyValidationError) Reason() string
Reason function returns reason value.
type AddServerRequest ¶
type AddServerRequest struct { Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
新增环境
func (*AddServerRequest) Descriptor
deprecated
func (*AddServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddServerRequest.ProtoReflect.Descriptor instead.
func (*AddServerRequest) GetDescription ¶
func (x *AddServerRequest) GetDescription() string
func (*AddServerRequest) GetKeyword ¶
func (x *AddServerRequest) GetKeyword() string
func (*AddServerRequest) GetName ¶
func (x *AddServerRequest) GetName() string
func (*AddServerRequest) ProtoMessage ¶
func (*AddServerRequest) ProtoMessage()
func (*AddServerRequest) ProtoReflect ¶
func (x *AddServerRequest) ProtoReflect() protoreflect.Message
func (*AddServerRequest) Reset ¶
func (x *AddServerRequest) Reset()
func (*AddServerRequest) String ¶
func (x *AddServerRequest) String() string
func (*AddServerRequest) Validate ¶
func (m *AddServerRequest) Validate() error
Validate checks the field values on AddServerRequest 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 (*AddServerRequest) ValidateAll ¶
func (m *AddServerRequest) ValidateAll() error
ValidateAll checks the field values on AddServerRequest 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 AddServerRequestMultiError, or nil if none found.
type AddServerRequestMultiError ¶
type AddServerRequestMultiError []error
AddServerRequestMultiError is an error wrapping multiple validation errors returned by AddServerRequest.ValidateAll() if the designated constraints aren't met.
func (AddServerRequestMultiError) AllErrors ¶
func (m AddServerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddServerRequestMultiError) Error ¶
func (m AddServerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddServerRequestValidationError ¶
type AddServerRequestValidationError struct {
// contains filtered or unexported fields
}
AddServerRequestValidationError is the validation error returned by AddServerRequest.Validate if the designated constraints aren't met.
func (AddServerRequestValidationError) Cause ¶
func (e AddServerRequestValidationError) Cause() error
Cause function returns cause value.
func (AddServerRequestValidationError) Error ¶
func (e AddServerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddServerRequestValidationError) ErrorName ¶
func (e AddServerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddServerRequestValidationError) Field ¶
func (e AddServerRequestValidationError) Field() string
Field function returns field value.
func (AddServerRequestValidationError) Key ¶
func (e AddServerRequestValidationError) Key() bool
Key function returns key value.
func (AddServerRequestValidationError) Reason ¶
func (e AddServerRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteServerRequest ¶
type DeleteServerRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
删除环境
func (*DeleteServerRequest) Descriptor
deprecated
func (*DeleteServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteServerRequest.ProtoReflect.Descriptor instead.
func (*DeleteServerRequest) GetId ¶
func (x *DeleteServerRequest) GetId() uint32
func (*DeleteServerRequest) ProtoMessage ¶
func (*DeleteServerRequest) ProtoMessage()
func (*DeleteServerRequest) ProtoReflect ¶
func (x *DeleteServerRequest) ProtoReflect() protoreflect.Message
func (*DeleteServerRequest) Reset ¶
func (x *DeleteServerRequest) Reset()
func (*DeleteServerRequest) String ¶
func (x *DeleteServerRequest) String() string
func (*DeleteServerRequest) Validate ¶
func (m *DeleteServerRequest) Validate() error
Validate checks the field values on DeleteServerRequest 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 (*DeleteServerRequest) ValidateAll ¶
func (m *DeleteServerRequest) ValidateAll() error
ValidateAll checks the field values on DeleteServerRequest 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 DeleteServerRequestMultiError, or nil if none found.
type DeleteServerRequestMultiError ¶
type DeleteServerRequestMultiError []error
DeleteServerRequestMultiError is an error wrapping multiple validation errors returned by DeleteServerRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteServerRequestMultiError) AllErrors ¶
func (m DeleteServerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteServerRequestMultiError) Error ¶
func (m DeleteServerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteServerRequestValidationError ¶
type DeleteServerRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteServerRequestValidationError is the validation error returned by DeleteServerRequest.Validate if the designated constraints aren't met.
func (DeleteServerRequestValidationError) Cause ¶
func (e DeleteServerRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteServerRequestValidationError) Error ¶
func (e DeleteServerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteServerRequestValidationError) ErrorName ¶
func (e DeleteServerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteServerRequestValidationError) Field ¶
func (e DeleteServerRequestValidationError) Field() string
Field function returns field value.
func (DeleteServerRequestValidationError) Key ¶
func (e DeleteServerRequestValidationError) Key() bool
Key function returns key value.
func (DeleteServerRequestValidationError) Reason ¶
func (e DeleteServerRequestValidationError) Reason() string
Reason function returns reason value.
type GetServerReply ¶
type GetServerReply struct { Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` // contains filtered or unexported fields }
func (*GetServerReply) Descriptor
deprecated
func (*GetServerReply) Descriptor() ([]byte, []int)
Deprecated: Use GetServerReply.ProtoReflect.Descriptor instead.
func (*GetServerReply) GetServer ¶
func (x *GetServerReply) GetServer() *Server
func (*GetServerReply) ProtoMessage ¶
func (*GetServerReply) ProtoMessage()
func (*GetServerReply) ProtoReflect ¶
func (x *GetServerReply) ProtoReflect() protoreflect.Message
func (*GetServerReply) Reset ¶
func (x *GetServerReply) Reset()
func (*GetServerReply) String ¶
func (x *GetServerReply) String() string
func (*GetServerReply) Validate ¶
func (m *GetServerReply) Validate() error
Validate checks the field values on GetServerReply 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 (*GetServerReply) ValidateAll ¶
func (m *GetServerReply) ValidateAll() error
ValidateAll checks the field values on GetServerReply 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 GetServerReplyMultiError, or nil if none found.
type GetServerReplyMultiError ¶
type GetServerReplyMultiError []error
GetServerReplyMultiError is an error wrapping multiple validation errors returned by GetServerReply.ValidateAll() if the designated constraints aren't met.
func (GetServerReplyMultiError) AllErrors ¶
func (m GetServerReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetServerReplyMultiError) Error ¶
func (m GetServerReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetServerReplyValidationError ¶
type GetServerReplyValidationError struct {
// contains filtered or unexported fields
}
GetServerReplyValidationError is the validation error returned by GetServerReply.Validate if the designated constraints aren't met.
func (GetServerReplyValidationError) Cause ¶
func (e GetServerReplyValidationError) Cause() error
Cause function returns cause value.
func (GetServerReplyValidationError) Error ¶
func (e GetServerReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetServerReplyValidationError) ErrorName ¶
func (e GetServerReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetServerReplyValidationError) Field ¶
func (e GetServerReplyValidationError) Field() string
Field function returns field value.
func (GetServerReplyValidationError) Key ¶
func (e GetServerReplyValidationError) Key() bool
Key function returns key value.
func (GetServerReplyValidationError) Reason ¶
func (e GetServerReplyValidationError) Reason() string
Reason function returns reason value.
type GetServerRequest ¶
type GetServerRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetServerRequest) Descriptor
deprecated
func (*GetServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetServerRequest.ProtoReflect.Descriptor instead.
func (*GetServerRequest) GetId ¶
func (x *GetServerRequest) GetId() uint32
func (*GetServerRequest) ProtoMessage ¶
func (*GetServerRequest) ProtoMessage()
func (*GetServerRequest) ProtoReflect ¶
func (x *GetServerRequest) ProtoReflect() protoreflect.Message
func (*GetServerRequest) Reset ¶
func (x *GetServerRequest) Reset()
func (*GetServerRequest) String ¶
func (x *GetServerRequest) String() string
func (*GetServerRequest) Validate ¶
func (m *GetServerRequest) Validate() error
Validate checks the field values on GetServerRequest 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 (*GetServerRequest) ValidateAll ¶
func (m *GetServerRequest) ValidateAll() error
ValidateAll checks the field values on GetServerRequest 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 GetServerRequestMultiError, or nil if none found.
type GetServerRequestMultiError ¶
type GetServerRequestMultiError []error
GetServerRequestMultiError is an error wrapping multiple validation errors returned by GetServerRequest.ValidateAll() if the designated constraints aren't met.
func (GetServerRequestMultiError) AllErrors ¶
func (m GetServerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetServerRequestMultiError) Error ¶
func (m GetServerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetServerRequestValidationError ¶
type GetServerRequestValidationError struct {
// contains filtered or unexported fields
}
GetServerRequestValidationError is the validation error returned by GetServerRequest.Validate if the designated constraints aren't met.
func (GetServerRequestValidationError) Cause ¶
func (e GetServerRequestValidationError) Cause() error
Cause function returns cause value.
func (GetServerRequestValidationError) Error ¶
func (e GetServerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetServerRequestValidationError) ErrorName ¶
func (e GetServerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetServerRequestValidationError) Field ¶
func (e GetServerRequestValidationError) Field() string
Field function returns field value.
func (GetServerRequestValidationError) Key ¶
func (e GetServerRequestValidationError) Key() bool
Key function returns key value.
func (GetServerRequestValidationError) Reason ¶
func (e GetServerRequestValidationError) Reason() string
Reason function returns reason value.
type PageServerReply ¶
type PageServerReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Server `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*PageServerReply) Descriptor
deprecated
func (*PageServerReply) Descriptor() ([]byte, []int)
Deprecated: Use PageServerReply.ProtoReflect.Descriptor instead.
func (*PageServerReply) GetList ¶
func (x *PageServerReply) GetList() []*Server
func (*PageServerReply) GetTotal ¶
func (x *PageServerReply) GetTotal() uint32
func (*PageServerReply) ProtoMessage ¶
func (*PageServerReply) ProtoMessage()
func (*PageServerReply) ProtoReflect ¶
func (x *PageServerReply) ProtoReflect() protoreflect.Message
func (*PageServerReply) Reset ¶
func (x *PageServerReply) Reset()
func (*PageServerReply) String ¶
func (x *PageServerReply) String() string
func (*PageServerReply) Validate ¶
func (m *PageServerReply) Validate() error
Validate checks the field values on PageServerReply 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 (*PageServerReply) ValidateAll ¶
func (m *PageServerReply) ValidateAll() error
ValidateAll checks the field values on PageServerReply 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 PageServerReplyMultiError, or nil if none found.
type PageServerReplyMultiError ¶
type PageServerReplyMultiError []error
PageServerReplyMultiError is an error wrapping multiple validation errors returned by PageServerReply.ValidateAll() if the designated constraints aren't met.
func (PageServerReplyMultiError) AllErrors ¶
func (m PageServerReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageServerReplyMultiError) Error ¶
func (m PageServerReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageServerReplyValidationError ¶
type PageServerReplyValidationError struct {
// contains filtered or unexported fields
}
PageServerReplyValidationError is the validation error returned by PageServerReply.Validate if the designated constraints aren't met.
func (PageServerReplyValidationError) Cause ¶
func (e PageServerReplyValidationError) Cause() error
Cause function returns cause value.
func (PageServerReplyValidationError) Error ¶
func (e PageServerReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PageServerReplyValidationError) ErrorName ¶
func (e PageServerReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PageServerReplyValidationError) Field ¶
func (e PageServerReplyValidationError) Field() string
Field function returns field value.
func (PageServerReplyValidationError) Key ¶
func (e PageServerReplyValidationError) Key() bool
Key function returns key value.
func (PageServerReplyValidationError) Reason ¶
func (e PageServerReplyValidationError) Reason() string
Reason function returns reason value.
type PageServerRequest ¶
type PageServerRequest struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Keyword *string `protobuf:"bytes,3,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` // contains filtered or unexported fields }
func (*PageServerRequest) Descriptor
deprecated
func (*PageServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageServerRequest.ProtoReflect.Descriptor instead.
func (*PageServerRequest) GetKeyword ¶
func (x *PageServerRequest) GetKeyword() string
func (*PageServerRequest) GetPage ¶
func (x *PageServerRequest) GetPage() uint32
func (*PageServerRequest) GetPageSize ¶
func (x *PageServerRequest) GetPageSize() uint32
func (*PageServerRequest) ProtoMessage ¶
func (*PageServerRequest) ProtoMessage()
func (*PageServerRequest) ProtoReflect ¶
func (x *PageServerRequest) ProtoReflect() protoreflect.Message
func (*PageServerRequest) Reset ¶
func (x *PageServerRequest) Reset()
func (*PageServerRequest) String ¶
func (x *PageServerRequest) String() string
func (*PageServerRequest) Validate ¶
func (m *PageServerRequest) Validate() error
Validate checks the field values on PageServerRequest 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 (*PageServerRequest) ValidateAll ¶
func (m *PageServerRequest) ValidateAll() error
ValidateAll checks the field values on PageServerRequest 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 PageServerRequestMultiError, or nil if none found.
type PageServerRequestMultiError ¶
type PageServerRequestMultiError []error
PageServerRequestMultiError is an error wrapping multiple validation errors returned by PageServerRequest.ValidateAll() if the designated constraints aren't met.
func (PageServerRequestMultiError) AllErrors ¶
func (m PageServerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageServerRequestMultiError) Error ¶
func (m PageServerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageServerRequestValidationError ¶
type PageServerRequestValidationError struct {
// contains filtered or unexported fields
}
PageServerRequestValidationError is the validation error returned by PageServerRequest.Validate if the designated constraints aren't met.
func (PageServerRequestValidationError) Cause ¶
func (e PageServerRequestValidationError) Cause() error
Cause function returns cause value.
func (PageServerRequestValidationError) Error ¶
func (e PageServerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PageServerRequestValidationError) ErrorName ¶
func (e PageServerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PageServerRequestValidationError) Field ¶
func (e PageServerRequestValidationError) Field() string
Field function returns field value.
func (PageServerRequestValidationError) Key ¶
func (e PageServerRequestValidationError) Key() bool
Key function returns key value.
func (PageServerRequestValidationError) Reason ¶
func (e PageServerRequestValidationError) Reason() string
Reason function returns reason value.
type Server ¶
type Server struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` CreatedAt uint32 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt uint32 `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Server) Descriptor
deprecated
func (*Server) GetCreatedAt ¶
func (*Server) GetDescription ¶
func (*Server) GetKeyword ¶
func (*Server) GetUpdatedAt ¶
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
func (*Server) Validate ¶
Validate checks the field values on Server 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 (*Server) ValidateAll ¶
ValidateAll checks the field values on Server 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 ServerMultiError, or nil if none found.
type ServerMultiError ¶
type ServerMultiError []error
ServerMultiError is an error wrapping multiple validation errors returned by Server.ValidateAll() if the designated constraints aren't met.
func (ServerMultiError) AllErrors ¶
func (m ServerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServerMultiError) Error ¶
func (m ServerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServerValidationError ¶
type ServerValidationError struct {
// contains filtered or unexported fields
}
ServerValidationError is the validation error returned by Server.Validate if the designated constraints aren't met.
func (ServerValidationError) Cause ¶
func (e ServerValidationError) Cause() error
Cause function returns cause value.
func (ServerValidationError) Error ¶
func (e ServerValidationError) Error() string
Error satisfies the builtin error interface
func (ServerValidationError) ErrorName ¶
func (e ServerValidationError) ErrorName() string
ErrorName returns error name.
func (ServerValidationError) Field ¶
func (e ServerValidationError) Field() string
Field function returns field value.
func (ServerValidationError) Key ¶
func (e ServerValidationError) Key() bool
Key function returns key value.
func (ServerValidationError) Reason ¶
func (e ServerValidationError) Reason() string
Reason function returns reason value.
type ServiceClient ¶
type ServiceClient interface { PageServer(ctx context.Context, in *PageServerRequest, opts ...grpc.CallOption) (*PageServerReply, error) GetServer(ctx context.Context, in *GetServerRequest, opts ...grpc.CallOption) (*Server, error) AddServer(ctx context.Context, in *AddServerRequest, opts ...grpc.CallOption) (*AddServerReply, error) UpdateServer(ctx context.Context, in *UpdateServerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteServer(ctx context.Context, in *DeleteServerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceHTTPClient ¶
type ServiceHTTPClient interface { AddServer(ctx context.Context, req *AddServerRequest, opts ...http.CallOption) (rsp *AddServerReply, err error) DeleteServer(ctx context.Context, req *DeleteServerRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetServer(ctx context.Context, req *GetServerRequest, opts ...http.CallOption) (rsp *Server, err error) PageServer(ctx context.Context, req *PageServerRequest, opts ...http.CallOption) (rsp *PageServerReply, err error) UpdateServer(ctx context.Context, req *UpdateServerRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewServiceHTTPClient ¶
func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient
type ServiceHTTPClientImpl ¶
type ServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServiceHTTPClientImpl) AddServer ¶
func (c *ServiceHTTPClientImpl) AddServer(ctx context.Context, in *AddServerRequest, opts ...http.CallOption) (*AddServerReply, error)
func (*ServiceHTTPClientImpl) DeleteServer ¶
func (c *ServiceHTTPClientImpl) DeleteServer(ctx context.Context, in *DeleteServerRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) GetServer ¶
func (c *ServiceHTTPClientImpl) GetServer(ctx context.Context, in *GetServerRequest, opts ...http.CallOption) (*Server, error)
func (*ServiceHTTPClientImpl) PageServer ¶
func (c *ServiceHTTPClientImpl) PageServer(ctx context.Context, in *PageServerRequest, opts ...http.CallOption) (*PageServerReply, error)
func (*ServiceHTTPClientImpl) UpdateServer ¶
func (c *ServiceHTTPClientImpl) UpdateServer(ctx context.Context, in *UpdateServerRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface { AddServer(context.Context, *AddServerRequest) (*AddServerReply, error) DeleteServer(context.Context, *DeleteServerRequest) (*emptypb.Empty, error) GetServer(context.Context, *GetServerRequest) (*Server, error) PageServer(context.Context, *PageServerRequest) (*PageServerReply, error) UpdateServer(context.Context, *UpdateServerRequest) (*emptypb.Empty, error) }
type ServiceServer ¶
type ServiceServer interface { PageServer(context.Context, *PageServerRequest) (*PageServerReply, error) GetServer(context.Context, *GetServerRequest) (*Server, error) AddServer(context.Context, *AddServerRequest) (*AddServerReply, error) UpdateServer(context.Context, *UpdateServerRequest) (*emptypb.Empty, error) DeleteServer(context.Context, *DeleteServerRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddServer ¶
func (UnimplementedServiceServer) AddServer(context.Context, *AddServerRequest) (*AddServerReply, error)
func (UnimplementedServiceServer) DeleteServer ¶
func (UnimplementedServiceServer) DeleteServer(context.Context, *DeleteServerRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) GetServer ¶
func (UnimplementedServiceServer) GetServer(context.Context, *GetServerRequest) (*Server, error)
func (UnimplementedServiceServer) PageServer ¶
func (UnimplementedServiceServer) PageServer(context.Context, *PageServerRequest) (*PageServerReply, error)
func (UnimplementedServiceServer) UpdateServer ¶
func (UnimplementedServiceServer) UpdateServer(context.Context, *UpdateServerRequest) (*emptypb.Empty, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type UpdateServerRequest ¶
type UpdateServerRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
修改环境
func (*UpdateServerRequest) Descriptor
deprecated
func (*UpdateServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateServerRequest.ProtoReflect.Descriptor instead.
func (*UpdateServerRequest) GetDescription ¶
func (x *UpdateServerRequest) GetDescription() string
func (*UpdateServerRequest) GetId ¶
func (x *UpdateServerRequest) GetId() uint32
func (*UpdateServerRequest) GetKeyword ¶
func (x *UpdateServerRequest) GetKeyword() string
func (*UpdateServerRequest) GetName ¶
func (x *UpdateServerRequest) GetName() string
func (*UpdateServerRequest) ProtoMessage ¶
func (*UpdateServerRequest) ProtoMessage()
func (*UpdateServerRequest) ProtoReflect ¶
func (x *UpdateServerRequest) ProtoReflect() protoreflect.Message
func (*UpdateServerRequest) Reset ¶
func (x *UpdateServerRequest) Reset()
func (*UpdateServerRequest) String ¶
func (x *UpdateServerRequest) String() string
func (*UpdateServerRequest) Validate ¶
func (m *UpdateServerRequest) Validate() error
Validate checks the field values on UpdateServerRequest 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 (*UpdateServerRequest) ValidateAll ¶
func (m *UpdateServerRequest) ValidateAll() error
ValidateAll checks the field values on UpdateServerRequest 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 UpdateServerRequestMultiError, or nil if none found.
type UpdateServerRequestMultiError ¶
type UpdateServerRequestMultiError []error
UpdateServerRequestMultiError is an error wrapping multiple validation errors returned by UpdateServerRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateServerRequestMultiError) AllErrors ¶
func (m UpdateServerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateServerRequestMultiError) Error ¶
func (m UpdateServerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateServerRequestValidationError ¶
type UpdateServerRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateServerRequestValidationError is the validation error returned by UpdateServerRequest.Validate if the designated constraints aren't met.
func (UpdateServerRequestValidationError) Cause ¶
func (e UpdateServerRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateServerRequestValidationError) Error ¶
func (e UpdateServerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateServerRequestValidationError) ErrorName ¶
func (e UpdateServerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateServerRequestValidationError) Field ¶
func (e UpdateServerRequestValidationError) Field() string
Field function returns field value.
func (UpdateServerRequestValidationError) Key ¶
func (e UpdateServerRequestValidationError) Key() bool
Key function returns key value.
func (UpdateServerRequestValidationError) Reason ¶
func (e UpdateServerRequestValidationError) Reason() string
Reason function returns reason value.