Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServerHTTPServer(s *http.Server, srv ServerHTTPServer)
- func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)
- type CreateServerReply
- func (*CreateServerReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateServerReply) GetId() uint32
- func (*CreateServerReply) ProtoMessage()
- func (x *CreateServerReply) ProtoReflect() protoreflect.Message
- func (x *CreateServerReply) Reset()
- func (x *CreateServerReply) String() string
- func (m *CreateServerReply) Validate() error
- func (m *CreateServerReply) ValidateAll() error
- type CreateServerReplyMultiError
- type CreateServerReplyValidationError
- func (e CreateServerReplyValidationError) Cause() error
- func (e CreateServerReplyValidationError) Error() string
- func (e CreateServerReplyValidationError) ErrorName() string
- func (e CreateServerReplyValidationError) Field() string
- func (e CreateServerReplyValidationError) Key() bool
- func (e CreateServerReplyValidationError) Reason() string
- type CreateServerRequest
- func (*CreateServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateServerRequest) GetDescription() string
- func (x *CreateServerRequest) GetKeyword() string
- func (x *CreateServerRequest) GetName() string
- func (x *CreateServerRequest) GetStatus() bool
- func (*CreateServerRequest) ProtoMessage()
- func (x *CreateServerRequest) ProtoReflect() protoreflect.Message
- func (x *CreateServerRequest) Reset()
- func (x *CreateServerRequest) String() string
- func (m *CreateServerRequest) Validate() error
- func (m *CreateServerRequest) ValidateAll() error
- type CreateServerRequestMultiError
- type CreateServerRequestValidationError
- func (e CreateServerRequestValidationError) Cause() error
- func (e CreateServerRequestValidationError) Error() string
- func (e CreateServerRequestValidationError) ErrorName() string
- func (e CreateServerRequestValidationError) Field() string
- func (e CreateServerRequestValidationError) Key() bool
- func (e CreateServerRequestValidationError) Reason() string
- type DeleteServerReply
- func (*DeleteServerReply) Descriptor() ([]byte, []int)deprecated
- func (*DeleteServerReply) ProtoMessage()
- func (x *DeleteServerReply) ProtoReflect() protoreflect.Message
- func (x *DeleteServerReply) Reset()
- func (x *DeleteServerReply) String() string
- func (m *DeleteServerReply) Validate() error
- func (m *DeleteServerReply) ValidateAll() error
- type DeleteServerReplyMultiError
- type DeleteServerReplyValidationError
- func (e DeleteServerReplyValidationError) Cause() error
- func (e DeleteServerReplyValidationError) Error() string
- func (e DeleteServerReplyValidationError) ErrorName() string
- func (e DeleteServerReplyValidationError) Field() string
- func (e DeleteServerReplyValidationError) Key() bool
- func (e DeleteServerReplyValidationError) 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 ListServerReply
- func (*ListServerReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListServerReply) GetList() []*ListServerReply_Server
- func (x *ListServerReply) GetTotal() uint32
- func (*ListServerReply) ProtoMessage()
- func (x *ListServerReply) ProtoReflect() protoreflect.Message
- func (x *ListServerReply) Reset()
- func (x *ListServerReply) String() string
- func (m *ListServerReply) Validate() error
- func (m *ListServerReply) ValidateAll() error
- type ListServerReplyMultiError
- type ListServerReplyValidationError
- func (e ListServerReplyValidationError) Cause() error
- func (e ListServerReplyValidationError) Error() string
- func (e ListServerReplyValidationError) ErrorName() string
- func (e ListServerReplyValidationError) Field() string
- func (e ListServerReplyValidationError) Key() bool
- func (e ListServerReplyValidationError) Reason() string
- type ListServerReply_Server
- func (*ListServerReply_Server) Descriptor() ([]byte, []int)deprecated
- func (x *ListServerReply_Server) GetCreatedAt() uint32
- func (x *ListServerReply_Server) GetDescription() string
- func (x *ListServerReply_Server) GetId() uint32
- func (x *ListServerReply_Server) GetKeyword() string
- func (x *ListServerReply_Server) GetName() string
- func (x *ListServerReply_Server) GetStatus() bool
- func (x *ListServerReply_Server) GetUpdatedAt() uint32
- func (*ListServerReply_Server) ProtoMessage()
- func (x *ListServerReply_Server) ProtoReflect() protoreflect.Message
- func (x *ListServerReply_Server) Reset()
- func (x *ListServerReply_Server) String() string
- func (m *ListServerReply_Server) Validate() error
- func (m *ListServerReply_Server) ValidateAll() error
- type ListServerReply_ServerMultiError
- type ListServerReply_ServerValidationError
- func (e ListServerReply_ServerValidationError) Cause() error
- func (e ListServerReply_ServerValidationError) Error() string
- func (e ListServerReply_ServerValidationError) ErrorName() string
- func (e ListServerReply_ServerValidationError) Field() string
- func (e ListServerReply_ServerValidationError) Key() bool
- func (e ListServerReply_ServerValidationError) Reason() string
- type ListServerRequest
- func (*ListServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListServerRequest) GetKeyword() string
- func (x *ListServerRequest) GetName() string
- func (x *ListServerRequest) GetOrder() string
- func (x *ListServerRequest) GetOrderBy() string
- func (x *ListServerRequest) GetPage() uint32
- func (x *ListServerRequest) GetPageSize() uint32
- func (x *ListServerRequest) GetStatus() bool
- func (*ListServerRequest) ProtoMessage()
- func (x *ListServerRequest) ProtoReflect() protoreflect.Message
- func (x *ListServerRequest) Reset()
- func (x *ListServerRequest) String() string
- func (m *ListServerRequest) Validate() error
- func (m *ListServerRequest) ValidateAll() error
- type ListServerRequestMultiError
- type ListServerRequestValidationError
- func (e ListServerRequestValidationError) Cause() error
- func (e ListServerRequestValidationError) Error() string
- func (e ListServerRequestValidationError) ErrorName() string
- func (e ListServerRequestValidationError) Field() string
- func (e ListServerRequestValidationError) Key() bool
- func (e ListServerRequestValidationError) Reason() string
- type ServerClient
- type ServerHTTPClient
- type ServerHTTPClientImpl
- func (c *ServerHTTPClientImpl) CreateServer(ctx context.Context, in *CreateServerRequest, opts ...http.CallOption) (*CreateServerReply, error)
- func (c *ServerHTTPClientImpl) DeleteServer(ctx context.Context, in *DeleteServerRequest, opts ...http.CallOption) (*DeleteServerReply, error)
- func (c *ServerHTTPClientImpl) ListServer(ctx context.Context, in *ListServerRequest, opts ...http.CallOption) (*ListServerReply, error)
- func (c *ServerHTTPClientImpl) UpdateServer(ctx context.Context, in *UpdateServerRequest, opts ...http.CallOption) (*UpdateServerReply, error)
- type ServerHTTPServer
- type ServerServer
- type UnimplementedServerServer
- func (UnimplementedServerServer) CreateServer(context.Context, *CreateServerRequest) (*CreateServerReply, error)
- func (UnimplementedServerServer) DeleteServer(context.Context, *DeleteServerRequest) (*DeleteServerReply, error)
- func (UnimplementedServerServer) ListServer(context.Context, *ListServerRequest) (*ListServerReply, error)
- func (UnimplementedServerServer) UpdateServer(context.Context, *UpdateServerRequest) (*UpdateServerReply, error)
- type UnsafeServerServer
- type UpdateServerReply
- func (*UpdateServerReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateServerReply) ProtoMessage()
- func (x *UpdateServerReply) ProtoReflect() protoreflect.Message
- func (x *UpdateServerReply) Reset()
- func (x *UpdateServerReply) String() string
- func (m *UpdateServerReply) Validate() error
- func (m *UpdateServerReply) ValidateAll() error
- type UpdateServerReplyMultiError
- type UpdateServerReplyValidationError
- func (e UpdateServerReplyValidationError) Cause() error
- func (e UpdateServerReplyValidationError) Error() string
- func (e UpdateServerReplyValidationError) ErrorName() string
- func (e UpdateServerReplyValidationError) Field() string
- func (e UpdateServerReplyValidationError) Key() bool
- func (e UpdateServerReplyValidationError) Reason() string
- 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 (x *UpdateServerRequest) GetStatus() bool
- 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 ( Server_ListServer_FullMethodName = "/configure.api.configure.server.v1.Server/ListServer" Server_CreateServer_FullMethodName = "/configure.api.configure.server.v1.Server/CreateServer" Server_UpdateServer_FullMethodName = "/configure.api.configure.server.v1.Server/UpdateServer" Server_DeleteServer_FullMethodName = "/configure.api.configure.server.v1.Server/DeleteServer" )
const OperationServerCreateServer = "/configure.api.configure.server.v1.Server/CreateServer"
const OperationServerDeleteServer = "/configure.api.configure.server.v1.Server/DeleteServer"
const OperationServerListServer = "/configure.api.configure.server.v1.Server/ListServer"
const OperationServerUpdateServer = "/configure.api.configure.server.v1.Server/UpdateServer"
Variables ¶
var File_api_configure_server_configure_server_proto protoreflect.FileDescriptor
var File_api_configure_server_configure_server_service_proto protoreflect.FileDescriptor
var Server_ServiceDesc = grpc.ServiceDesc{ ServiceName: "configure.api.configure.server.v1.Server", HandlerType: (*ServerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListServer", Handler: _Server_ListServer_Handler, }, { MethodName: "CreateServer", Handler: _Server_CreateServer_Handler, }, { MethodName: "UpdateServer", Handler: _Server_UpdateServer_Handler, }, { MethodName: "DeleteServer", Handler: _Server_DeleteServer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/configure/server/configure_server_service.proto", }
Server_ServiceDesc is the grpc.ServiceDesc for Server service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServerHTTPServer ¶
func RegisterServerHTTPServer(s *http.Server, srv ServerHTTPServer)
func RegisterServerServer ¶
func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)
Types ¶
type CreateServerReply ¶
type CreateServerReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateServerReply) Descriptor
deprecated
func (*CreateServerReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateServerReply.ProtoReflect.Descriptor instead.
func (*CreateServerReply) GetId ¶
func (x *CreateServerReply) GetId() uint32
func (*CreateServerReply) ProtoMessage ¶
func (*CreateServerReply) ProtoMessage()
func (*CreateServerReply) ProtoReflect ¶
func (x *CreateServerReply) ProtoReflect() protoreflect.Message
func (*CreateServerReply) Reset ¶
func (x *CreateServerReply) Reset()
func (*CreateServerReply) String ¶
func (x *CreateServerReply) String() string
func (*CreateServerReply) Validate ¶
func (m *CreateServerReply) Validate() error
Validate checks the field values on CreateServerReply 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 (*CreateServerReply) ValidateAll ¶
func (m *CreateServerReply) ValidateAll() error
ValidateAll checks the field values on CreateServerReply 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 CreateServerReplyMultiError, or nil if none found.
type CreateServerReplyMultiError ¶
type CreateServerReplyMultiError []error
CreateServerReplyMultiError is an error wrapping multiple validation errors returned by CreateServerReply.ValidateAll() if the designated constraints aren't met.
func (CreateServerReplyMultiError) AllErrors ¶
func (m CreateServerReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateServerReplyMultiError) Error ¶
func (m CreateServerReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateServerReplyValidationError ¶
type CreateServerReplyValidationError struct {
// contains filtered or unexported fields
}
CreateServerReplyValidationError is the validation error returned by CreateServerReply.Validate if the designated constraints aren't met.
func (CreateServerReplyValidationError) Cause ¶
func (e CreateServerReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateServerReplyValidationError) Error ¶
func (e CreateServerReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateServerReplyValidationError) ErrorName ¶
func (e CreateServerReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateServerReplyValidationError) Field ¶
func (e CreateServerReplyValidationError) Field() string
Field function returns field value.
func (CreateServerReplyValidationError) Key ¶
func (e CreateServerReplyValidationError) Key() bool
Key function returns key value.
func (CreateServerReplyValidationError) Reason ¶
func (e CreateServerReplyValidationError) Reason() string
Reason function returns reason value.
type CreateServerRequest ¶
type CreateServerRequest 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,oneof" json:"description,omitempty"` Status *bool `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"` // contains filtered or unexported fields }
func (*CreateServerRequest) Descriptor
deprecated
func (*CreateServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateServerRequest.ProtoReflect.Descriptor instead.
func (*CreateServerRequest) GetDescription ¶
func (x *CreateServerRequest) GetDescription() string
func (*CreateServerRequest) GetKeyword ¶
func (x *CreateServerRequest) GetKeyword() string
func (*CreateServerRequest) GetName ¶
func (x *CreateServerRequest) GetName() string
func (*CreateServerRequest) GetStatus ¶
func (x *CreateServerRequest) GetStatus() bool
func (*CreateServerRequest) ProtoMessage ¶
func (*CreateServerRequest) ProtoMessage()
func (*CreateServerRequest) ProtoReflect ¶
func (x *CreateServerRequest) ProtoReflect() protoreflect.Message
func (*CreateServerRequest) Reset ¶
func (x *CreateServerRequest) Reset()
func (*CreateServerRequest) String ¶
func (x *CreateServerRequest) String() string
func (*CreateServerRequest) Validate ¶
func (m *CreateServerRequest) Validate() error
Validate checks the field values on CreateServerRequest 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 (*CreateServerRequest) ValidateAll ¶
func (m *CreateServerRequest) ValidateAll() error
ValidateAll checks the field values on CreateServerRequest 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 CreateServerRequestMultiError, or nil if none found.
type CreateServerRequestMultiError ¶
type CreateServerRequestMultiError []error
CreateServerRequestMultiError is an error wrapping multiple validation errors returned by CreateServerRequest.ValidateAll() if the designated constraints aren't met.
func (CreateServerRequestMultiError) AllErrors ¶
func (m CreateServerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateServerRequestMultiError) Error ¶
func (m CreateServerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateServerRequestValidationError ¶
type CreateServerRequestValidationError struct {
// contains filtered or unexported fields
}
CreateServerRequestValidationError is the validation error returned by CreateServerRequest.Validate if the designated constraints aren't met.
func (CreateServerRequestValidationError) Cause ¶
func (e CreateServerRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateServerRequestValidationError) Error ¶
func (e CreateServerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateServerRequestValidationError) ErrorName ¶
func (e CreateServerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateServerRequestValidationError) Field ¶
func (e CreateServerRequestValidationError) Field() string
Field function returns field value.
func (CreateServerRequestValidationError) Key ¶
func (e CreateServerRequestValidationError) Key() bool
Key function returns key value.
func (CreateServerRequestValidationError) Reason ¶
func (e CreateServerRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteServerReply ¶
type DeleteServerReply struct {
// contains filtered or unexported fields
}
func (*DeleteServerReply) Descriptor
deprecated
func (*DeleteServerReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteServerReply.ProtoReflect.Descriptor instead.
func (*DeleteServerReply) ProtoMessage ¶
func (*DeleteServerReply) ProtoMessage()
func (*DeleteServerReply) ProtoReflect ¶
func (x *DeleteServerReply) ProtoReflect() protoreflect.Message
func (*DeleteServerReply) Reset ¶
func (x *DeleteServerReply) Reset()
func (*DeleteServerReply) String ¶
func (x *DeleteServerReply) String() string
func (*DeleteServerReply) Validate ¶
func (m *DeleteServerReply) Validate() error
Validate checks the field values on DeleteServerReply 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 (*DeleteServerReply) ValidateAll ¶
func (m *DeleteServerReply) ValidateAll() error
ValidateAll checks the field values on DeleteServerReply 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 DeleteServerReplyMultiError, or nil if none found.
type DeleteServerReplyMultiError ¶
type DeleteServerReplyMultiError []error
DeleteServerReplyMultiError is an error wrapping multiple validation errors returned by DeleteServerReply.ValidateAll() if the designated constraints aren't met.
func (DeleteServerReplyMultiError) AllErrors ¶
func (m DeleteServerReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteServerReplyMultiError) Error ¶
func (m DeleteServerReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteServerReplyValidationError ¶
type DeleteServerReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteServerReplyValidationError is the validation error returned by DeleteServerReply.Validate if the designated constraints aren't met.
func (DeleteServerReplyValidationError) Cause ¶
func (e DeleteServerReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteServerReplyValidationError) Error ¶
func (e DeleteServerReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteServerReplyValidationError) ErrorName ¶
func (e DeleteServerReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteServerReplyValidationError) Field ¶
func (e DeleteServerReplyValidationError) Field() string
Field function returns field value.
func (DeleteServerReplyValidationError) Key ¶
func (e DeleteServerReplyValidationError) Key() bool
Key function returns key value.
func (DeleteServerReplyValidationError) Reason ¶
func (e DeleteServerReplyValidationError) 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 ListServerReply ¶
type ListServerReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*ListServerReply_Server `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ListServerReply) Descriptor
deprecated
func (*ListServerReply) Descriptor() ([]byte, []int)
Deprecated: Use ListServerReply.ProtoReflect.Descriptor instead.
func (*ListServerReply) GetList ¶
func (x *ListServerReply) GetList() []*ListServerReply_Server
func (*ListServerReply) GetTotal ¶
func (x *ListServerReply) GetTotal() uint32
func (*ListServerReply) ProtoMessage ¶
func (*ListServerReply) ProtoMessage()
func (*ListServerReply) ProtoReflect ¶
func (x *ListServerReply) ProtoReflect() protoreflect.Message
func (*ListServerReply) Reset ¶
func (x *ListServerReply) Reset()
func (*ListServerReply) String ¶
func (x *ListServerReply) String() string
func (*ListServerReply) Validate ¶
func (m *ListServerReply) Validate() error
Validate checks the field values on ListServerReply 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 (*ListServerReply) ValidateAll ¶
func (m *ListServerReply) ValidateAll() error
ValidateAll checks the field values on ListServerReply 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 ListServerReplyMultiError, or nil if none found.
type ListServerReplyMultiError ¶
type ListServerReplyMultiError []error
ListServerReplyMultiError is an error wrapping multiple validation errors returned by ListServerReply.ValidateAll() if the designated constraints aren't met.
func (ListServerReplyMultiError) AllErrors ¶
func (m ListServerReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListServerReplyMultiError) Error ¶
func (m ListServerReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListServerReplyValidationError ¶
type ListServerReplyValidationError struct {
// contains filtered or unexported fields
}
ListServerReplyValidationError is the validation error returned by ListServerReply.Validate if the designated constraints aren't met.
func (ListServerReplyValidationError) Cause ¶
func (e ListServerReplyValidationError) Cause() error
Cause function returns cause value.
func (ListServerReplyValidationError) Error ¶
func (e ListServerReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListServerReplyValidationError) ErrorName ¶
func (e ListServerReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListServerReplyValidationError) Field ¶
func (e ListServerReplyValidationError) Field() string
Field function returns field value.
func (ListServerReplyValidationError) Key ¶
func (e ListServerReplyValidationError) Key() bool
Key function returns key value.
func (ListServerReplyValidationError) Reason ¶
func (e ListServerReplyValidationError) Reason() string
Reason function returns reason value.
type ListServerReply_Server ¶
type ListServerReply_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,oneof" json:"description,omitempty"` Status *bool `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"` CreatedAt uint32 `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*ListServerReply_Server) Descriptor
deprecated
func (*ListServerReply_Server) Descriptor() ([]byte, []int)
Deprecated: Use ListServerReply_Server.ProtoReflect.Descriptor instead.
func (*ListServerReply_Server) GetCreatedAt ¶
func (x *ListServerReply_Server) GetCreatedAt() uint32
func (*ListServerReply_Server) GetDescription ¶
func (x *ListServerReply_Server) GetDescription() string
func (*ListServerReply_Server) GetId ¶
func (x *ListServerReply_Server) GetId() uint32
func (*ListServerReply_Server) GetKeyword ¶
func (x *ListServerReply_Server) GetKeyword() string
func (*ListServerReply_Server) GetName ¶
func (x *ListServerReply_Server) GetName() string
func (*ListServerReply_Server) GetStatus ¶
func (x *ListServerReply_Server) GetStatus() bool
func (*ListServerReply_Server) GetUpdatedAt ¶
func (x *ListServerReply_Server) GetUpdatedAt() uint32
func (*ListServerReply_Server) ProtoMessage ¶
func (*ListServerReply_Server) ProtoMessage()
func (*ListServerReply_Server) ProtoReflect ¶
func (x *ListServerReply_Server) ProtoReflect() protoreflect.Message
func (*ListServerReply_Server) Reset ¶
func (x *ListServerReply_Server) Reset()
func (*ListServerReply_Server) String ¶
func (x *ListServerReply_Server) String() string
func (*ListServerReply_Server) Validate ¶
func (m *ListServerReply_Server) Validate() error
Validate checks the field values on ListServerReply_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 (*ListServerReply_Server) ValidateAll ¶
func (m *ListServerReply_Server) ValidateAll() error
ValidateAll checks the field values on ListServerReply_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 ListServerReply_ServerMultiError, or nil if none found.
type ListServerReply_ServerMultiError ¶
type ListServerReply_ServerMultiError []error
ListServerReply_ServerMultiError is an error wrapping multiple validation errors returned by ListServerReply_Server.ValidateAll() if the designated constraints aren't met.
func (ListServerReply_ServerMultiError) AllErrors ¶
func (m ListServerReply_ServerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListServerReply_ServerMultiError) Error ¶
func (m ListServerReply_ServerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListServerReply_ServerValidationError ¶
type ListServerReply_ServerValidationError struct {
// contains filtered or unexported fields
}
ListServerReply_ServerValidationError is the validation error returned by ListServerReply_Server.Validate if the designated constraints aren't met.
func (ListServerReply_ServerValidationError) Cause ¶
func (e ListServerReply_ServerValidationError) Cause() error
Cause function returns cause value.
func (ListServerReply_ServerValidationError) Error ¶
func (e ListServerReply_ServerValidationError) Error() string
Error satisfies the builtin error interface
func (ListServerReply_ServerValidationError) ErrorName ¶
func (e ListServerReply_ServerValidationError) ErrorName() string
ErrorName returns error name.
func (ListServerReply_ServerValidationError) Field ¶
func (e ListServerReply_ServerValidationError) Field() string
Field function returns field value.
func (ListServerReply_ServerValidationError) Key ¶
func (e ListServerReply_ServerValidationError) Key() bool
Key function returns key value.
func (ListServerReply_ServerValidationError) Reason ¶
func (e ListServerReply_ServerValidationError) Reason() string
Reason function returns reason value.
type ListServerRequest ¶
type ListServerRequest struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Order *string `protobuf:"bytes,3,opt,name=order,proto3,oneof" json:"order,omitempty"` OrderBy *string `protobuf:"bytes,4,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"` Keyword *string `protobuf:"bytes,5,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` Name *string `protobuf:"bytes,6,opt,name=name,proto3,oneof" json:"name,omitempty"` Status *bool `protobuf:"varint,7,opt,name=status,proto3,oneof" json:"status,omitempty"` // contains filtered or unexported fields }
func (*ListServerRequest) Descriptor
deprecated
func (*ListServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListServerRequest.ProtoReflect.Descriptor instead.
func (*ListServerRequest) GetKeyword ¶
func (x *ListServerRequest) GetKeyword() string
func (*ListServerRequest) GetName ¶
func (x *ListServerRequest) GetName() string
func (*ListServerRequest) GetOrder ¶
func (x *ListServerRequest) GetOrder() string
func (*ListServerRequest) GetOrderBy ¶
func (x *ListServerRequest) GetOrderBy() string
func (*ListServerRequest) GetPage ¶
func (x *ListServerRequest) GetPage() uint32
func (*ListServerRequest) GetPageSize ¶
func (x *ListServerRequest) GetPageSize() uint32
func (*ListServerRequest) GetStatus ¶
func (x *ListServerRequest) GetStatus() bool
func (*ListServerRequest) ProtoMessage ¶
func (*ListServerRequest) ProtoMessage()
func (*ListServerRequest) ProtoReflect ¶
func (x *ListServerRequest) ProtoReflect() protoreflect.Message
func (*ListServerRequest) Reset ¶
func (x *ListServerRequest) Reset()
func (*ListServerRequest) String ¶
func (x *ListServerRequest) String() string
func (*ListServerRequest) Validate ¶
func (m *ListServerRequest) Validate() error
Validate checks the field values on ListServerRequest 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 (*ListServerRequest) ValidateAll ¶
func (m *ListServerRequest) ValidateAll() error
ValidateAll checks the field values on ListServerRequest 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 ListServerRequestMultiError, or nil if none found.
type ListServerRequestMultiError ¶
type ListServerRequestMultiError []error
ListServerRequestMultiError is an error wrapping multiple validation errors returned by ListServerRequest.ValidateAll() if the designated constraints aren't met.
func (ListServerRequestMultiError) AllErrors ¶
func (m ListServerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListServerRequestMultiError) Error ¶
func (m ListServerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListServerRequestValidationError ¶
type ListServerRequestValidationError struct {
// contains filtered or unexported fields
}
ListServerRequestValidationError is the validation error returned by ListServerRequest.Validate if the designated constraints aren't met.
func (ListServerRequestValidationError) Cause ¶
func (e ListServerRequestValidationError) Cause() error
Cause function returns cause value.
func (ListServerRequestValidationError) Error ¶
func (e ListServerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListServerRequestValidationError) ErrorName ¶
func (e ListServerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListServerRequestValidationError) Field ¶
func (e ListServerRequestValidationError) Field() string
Field function returns field value.
func (ListServerRequestValidationError) Key ¶
func (e ListServerRequestValidationError) Key() bool
Key function returns key value.
func (ListServerRequestValidationError) Reason ¶
func (e ListServerRequestValidationError) Reason() string
Reason function returns reason value.
type ServerClient ¶
type ServerClient interface { // ListServer 获取服务信息列表 ListServer(ctx context.Context, in *ListServerRequest, opts ...grpc.CallOption) (*ListServerReply, error) // CreateServer 创建服务信息 CreateServer(ctx context.Context, in *CreateServerRequest, opts ...grpc.CallOption) (*CreateServerReply, error) // UpdateServer 更新服务信息 UpdateServer(ctx context.Context, in *UpdateServerRequest, opts ...grpc.CallOption) (*UpdateServerReply, error) // DeleteServer 删除服务信息 DeleteServer(ctx context.Context, in *DeleteServerRequest, opts ...grpc.CallOption) (*DeleteServerReply, error) }
ServerClient is the client API for Server 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 NewServerClient ¶
func NewServerClient(cc grpc.ClientConnInterface) ServerClient
type ServerHTTPClient ¶
type ServerHTTPClient interface { CreateServer(ctx context.Context, req *CreateServerRequest, opts ...http.CallOption) (rsp *CreateServerReply, err error) DeleteServer(ctx context.Context, req *DeleteServerRequest, opts ...http.CallOption) (rsp *DeleteServerReply, err error) ListServer(ctx context.Context, req *ListServerRequest, opts ...http.CallOption) (rsp *ListServerReply, err error) UpdateServer(ctx context.Context, req *UpdateServerRequest, opts ...http.CallOption) (rsp *UpdateServerReply, err error) }
func NewServerHTTPClient ¶
func NewServerHTTPClient(client *http.Client) ServerHTTPClient
type ServerHTTPClientImpl ¶
type ServerHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServerHTTPClientImpl) CreateServer ¶
func (c *ServerHTTPClientImpl) CreateServer(ctx context.Context, in *CreateServerRequest, opts ...http.CallOption) (*CreateServerReply, error)
func (*ServerHTTPClientImpl) DeleteServer ¶
func (c *ServerHTTPClientImpl) DeleteServer(ctx context.Context, in *DeleteServerRequest, opts ...http.CallOption) (*DeleteServerReply, error)
func (*ServerHTTPClientImpl) ListServer ¶
func (c *ServerHTTPClientImpl) ListServer(ctx context.Context, in *ListServerRequest, opts ...http.CallOption) (*ListServerReply, error)
func (*ServerHTTPClientImpl) UpdateServer ¶
func (c *ServerHTTPClientImpl) UpdateServer(ctx context.Context, in *UpdateServerRequest, opts ...http.CallOption) (*UpdateServerReply, error)
type ServerHTTPServer ¶
type ServerHTTPServer interface { // CreateServer CreateServer 创建服务信息 CreateServer(context.Context, *CreateServerRequest) (*CreateServerReply, error) // DeleteServer DeleteServer 删除服务信息 DeleteServer(context.Context, *DeleteServerRequest) (*DeleteServerReply, error) // ListServer ListServer 获取服务信息列表 ListServer(context.Context, *ListServerRequest) (*ListServerReply, error) // UpdateServer UpdateServer 更新服务信息 UpdateServer(context.Context, *UpdateServerRequest) (*UpdateServerReply, error) }
type ServerServer ¶
type ServerServer interface { // ListServer 获取服务信息列表 ListServer(context.Context, *ListServerRequest) (*ListServerReply, error) // CreateServer 创建服务信息 CreateServer(context.Context, *CreateServerRequest) (*CreateServerReply, error) // UpdateServer 更新服务信息 UpdateServer(context.Context, *UpdateServerRequest) (*UpdateServerReply, error) // DeleteServer 删除服务信息 DeleteServer(context.Context, *DeleteServerRequest) (*DeleteServerReply, error) // contains filtered or unexported methods }
ServerServer is the server API for Server service. All implementations must embed UnimplementedServerServer for forward compatibility
type UnimplementedServerServer ¶
type UnimplementedServerServer struct { }
UnimplementedServerServer must be embedded to have forward compatible implementations.
func (UnimplementedServerServer) CreateServer ¶
func (UnimplementedServerServer) CreateServer(context.Context, *CreateServerRequest) (*CreateServerReply, error)
func (UnimplementedServerServer) DeleteServer ¶
func (UnimplementedServerServer) DeleteServer(context.Context, *DeleteServerRequest) (*DeleteServerReply, error)
func (UnimplementedServerServer) ListServer ¶
func (UnimplementedServerServer) ListServer(context.Context, *ListServerRequest) (*ListServerReply, error)
func (UnimplementedServerServer) UpdateServer ¶
func (UnimplementedServerServer) UpdateServer(context.Context, *UpdateServerRequest) (*UpdateServerReply, error)
type UnsafeServerServer ¶
type UnsafeServerServer interface {
// contains filtered or unexported methods
}
UnsafeServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerServer will result in compilation errors.
type UpdateServerReply ¶
type UpdateServerReply struct {
// contains filtered or unexported fields
}
func (*UpdateServerReply) Descriptor
deprecated
func (*UpdateServerReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateServerReply.ProtoReflect.Descriptor instead.
func (*UpdateServerReply) ProtoMessage ¶
func (*UpdateServerReply) ProtoMessage()
func (*UpdateServerReply) ProtoReflect ¶
func (x *UpdateServerReply) ProtoReflect() protoreflect.Message
func (*UpdateServerReply) Reset ¶
func (x *UpdateServerReply) Reset()
func (*UpdateServerReply) String ¶
func (x *UpdateServerReply) String() string
func (*UpdateServerReply) Validate ¶
func (m *UpdateServerReply) Validate() error
Validate checks the field values on UpdateServerReply 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 (*UpdateServerReply) ValidateAll ¶
func (m *UpdateServerReply) ValidateAll() error
ValidateAll checks the field values on UpdateServerReply 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 UpdateServerReplyMultiError, or nil if none found.
type UpdateServerReplyMultiError ¶
type UpdateServerReplyMultiError []error
UpdateServerReplyMultiError is an error wrapping multiple validation errors returned by UpdateServerReply.ValidateAll() if the designated constraints aren't met.
func (UpdateServerReplyMultiError) AllErrors ¶
func (m UpdateServerReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateServerReplyMultiError) Error ¶
func (m UpdateServerReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateServerReplyValidationError ¶
type UpdateServerReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateServerReplyValidationError is the validation error returned by UpdateServerReply.Validate if the designated constraints aren't met.
func (UpdateServerReplyValidationError) Cause ¶
func (e UpdateServerReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateServerReplyValidationError) Error ¶
func (e UpdateServerReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateServerReplyValidationError) ErrorName ¶
func (e UpdateServerReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateServerReplyValidationError) Field ¶
func (e UpdateServerReplyValidationError) Field() string
Field function returns field value.
func (UpdateServerReplyValidationError) Key ¶
func (e UpdateServerReplyValidationError) Key() bool
Key function returns key value.
func (UpdateServerReplyValidationError) Reason ¶
func (e UpdateServerReplyValidationError) Reason() string
Reason function returns reason value.
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"` Status *bool `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"` Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" 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) GetStatus ¶
func (x *UpdateServerRequest) GetStatus() bool
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.