Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterEntityHTTPServer(s *http.Server, srv EntityHTTPServer)
- func RegisterEntityServer(s grpc.ServiceRegistrar, srv EntityServer)
- type EntityClient
- type EntityHTTPClient
- type EntityHTTPClientImpl
- type EntityHTTPServer
- type EntityServer
- type LoadEntityReply
- func (*LoadEntityReply) Descriptor() ([]byte, []int)deprecated
- func (x *LoadEntityReply) GetList() []*LoadEntityReply_Entity
- func (x *LoadEntityReply) GetTotal() uint32
- func (*LoadEntityReply) ProtoMessage()
- func (x *LoadEntityReply) ProtoReflect() protoreflect.Message
- func (x *LoadEntityReply) Reset()
- func (x *LoadEntityReply) String() string
- func (m *LoadEntityReply) Validate() error
- func (m *LoadEntityReply) ValidateAll() error
- type LoadEntityReplyMultiError
- type LoadEntityReplyValidationError
- func (e LoadEntityReplyValidationError) Cause() error
- func (e LoadEntityReplyValidationError) Error() string
- func (e LoadEntityReplyValidationError) ErrorName() string
- func (e LoadEntityReplyValidationError) Field() string
- func (e LoadEntityReplyValidationError) Key() bool
- func (e LoadEntityReplyValidationError) Reason() string
- type LoadEntityReply_Entity
- func (*LoadEntityReply_Entity) Descriptor() ([]byte, []int)deprecated
- func (x *LoadEntityReply_Entity) GetComment() string
- func (x *LoadEntityReply_Entity) GetDatabase() string
- func (x *LoadEntityReply_Entity) GetFields() []*LoadEntityReply_EntityField
- func (x *LoadEntityReply_Entity) GetName() string
- func (*LoadEntityReply_Entity) ProtoMessage()
- func (x *LoadEntityReply_Entity) ProtoReflect() protoreflect.Message
- func (x *LoadEntityReply_Entity) Reset()
- func (x *LoadEntityReply_Entity) String() string
- func (m *LoadEntityReply_Entity) Validate() error
- func (m *LoadEntityReply_Entity) ValidateAll() error
- type LoadEntityReply_EntityField
- func (*LoadEntityReply_EntityField) Descriptor() ([]byte, []int)deprecated
- func (x *LoadEntityReply_EntityField) GetComment() string
- func (x *LoadEntityReply_EntityField) GetName() string
- func (*LoadEntityReply_EntityField) ProtoMessage()
- func (x *LoadEntityReply_EntityField) ProtoReflect() protoreflect.Message
- func (x *LoadEntityReply_EntityField) Reset()
- func (x *LoadEntityReply_EntityField) String() string
- func (m *LoadEntityReply_EntityField) Validate() error
- func (m *LoadEntityReply_EntityField) ValidateAll() error
- type LoadEntityReply_EntityFieldMultiError
- type LoadEntityReply_EntityFieldValidationError
- func (e LoadEntityReply_EntityFieldValidationError) Cause() error
- func (e LoadEntityReply_EntityFieldValidationError) Error() string
- func (e LoadEntityReply_EntityFieldValidationError) ErrorName() string
- func (e LoadEntityReply_EntityFieldValidationError) Field() string
- func (e LoadEntityReply_EntityFieldValidationError) Key() bool
- func (e LoadEntityReply_EntityFieldValidationError) Reason() string
- type LoadEntityReply_EntityMultiError
- type LoadEntityReply_EntityValidationError
- func (e LoadEntityReply_EntityValidationError) Cause() error
- func (e LoadEntityReply_EntityValidationError) Error() string
- func (e LoadEntityReply_EntityValidationError) ErrorName() string
- func (e LoadEntityReply_EntityValidationError) Field() string
- func (e LoadEntityReply_EntityValidationError) Key() bool
- func (e LoadEntityReply_EntityValidationError) Reason() string
- type UnimplementedEntityServer
- type UnsafeEntityServer
Constants ¶
const (
Entity_LoadEntity_FullMethodName = "/resource.api.entity.Entity/LoadEntity"
)
const OperationEntityLoadEntity = "/resource.api.entity.Entity/LoadEntity"
Variables ¶
var Entity_ServiceDesc = grpc.ServiceDesc{ ServiceName: "resource.api.entity.Entity", HandlerType: (*EntityServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LoadEntity", Handler: _Entity_LoadEntity_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/entity/proto/entity_service.proto", }
Entity_ServiceDesc is the grpc.ServiceDesc for Entity service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_entity_proto_entity_proto protoreflect.FileDescriptor
var File_api_entity_proto_entity_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEntityHTTPServer ¶
func RegisterEntityHTTPServer(s *http.Server, srv EntityHTTPServer)
func RegisterEntityServer ¶
func RegisterEntityServer(s grpc.ServiceRegistrar, srv EntityServer)
Types ¶
type EntityClient ¶
type EntityClient interface {
// LoadEntity 载入全部系统的实体
LoadEntity(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*LoadEntityReply, error)
}
EntityClient is the client API for Entity 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 NewEntityClient ¶
func NewEntityClient(cc grpc.ClientConnInterface) EntityClient
type EntityHTTPClient ¶
type EntityHTTPClient interface {
LoadEntity(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *LoadEntityReply, err error)
}
func NewEntityHTTPClient ¶
func NewEntityHTTPClient(client *http.Client) EntityHTTPClient
type EntityHTTPClientImpl ¶
type EntityHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*EntityHTTPClientImpl) LoadEntity ¶
func (c *EntityHTTPClientImpl) LoadEntity(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*LoadEntityReply, error)
type EntityHTTPServer ¶
type EntityServer ¶
type EntityServer interface {
// LoadEntity 载入全部系统的实体
LoadEntity(context.Context, *emptypb.Empty) (*LoadEntityReply, error)
// contains filtered or unexported methods
}
EntityServer is the server API for Entity service. All implementations must embed UnimplementedEntityServer for forward compatibility
type LoadEntityReply ¶
type LoadEntityReply struct {
Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
List []*LoadEntityReply_Entity `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
// contains filtered or unexported fields
}
func (*LoadEntityReply) Descriptor
deprecated
func (*LoadEntityReply) Descriptor() ([]byte, []int)
Deprecated: Use LoadEntityReply.ProtoReflect.Descriptor instead.
func (*LoadEntityReply) GetList ¶
func (x *LoadEntityReply) GetList() []*LoadEntityReply_Entity
func (*LoadEntityReply) GetTotal ¶
func (x *LoadEntityReply) GetTotal() uint32
func (*LoadEntityReply) ProtoMessage ¶
func (*LoadEntityReply) ProtoMessage()
func (*LoadEntityReply) ProtoReflect ¶
func (x *LoadEntityReply) ProtoReflect() protoreflect.Message
func (*LoadEntityReply) Reset ¶
func (x *LoadEntityReply) Reset()
func (*LoadEntityReply) String ¶
func (x *LoadEntityReply) String() string
func (*LoadEntityReply) Validate ¶
func (m *LoadEntityReply) Validate() error
Validate checks the field values on LoadEntityReply 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 (*LoadEntityReply) ValidateAll ¶
func (m *LoadEntityReply) ValidateAll() error
ValidateAll checks the field values on LoadEntityReply 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 LoadEntityReplyMultiError, or nil if none found.
type LoadEntityReplyMultiError ¶
type LoadEntityReplyMultiError []error
LoadEntityReplyMultiError is an error wrapping multiple validation errors returned by LoadEntityReply.ValidateAll() if the designated constraints aren't met.
func (LoadEntityReplyMultiError) AllErrors ¶
func (m LoadEntityReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoadEntityReplyMultiError) Error ¶
func (m LoadEntityReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoadEntityReplyValidationError ¶
type LoadEntityReplyValidationError struct {
// contains filtered or unexported fields
}
LoadEntityReplyValidationError is the validation error returned by LoadEntityReply.Validate if the designated constraints aren't met.
func (LoadEntityReplyValidationError) Cause ¶
func (e LoadEntityReplyValidationError) Cause() error
Cause function returns cause value.
func (LoadEntityReplyValidationError) Error ¶
func (e LoadEntityReplyValidationError) Error() string
Error satisfies the builtin error interface
func (LoadEntityReplyValidationError) ErrorName ¶
func (e LoadEntityReplyValidationError) ErrorName() string
ErrorName returns error name.
func (LoadEntityReplyValidationError) Field ¶
func (e LoadEntityReplyValidationError) Field() string
Field function returns field value.
func (LoadEntityReplyValidationError) Key ¶
func (e LoadEntityReplyValidationError) Key() bool
Key function returns key value.
func (LoadEntityReplyValidationError) Reason ¶
func (e LoadEntityReplyValidationError) Reason() string
Reason function returns reason value.
type LoadEntityReply_Entity ¶
type LoadEntityReply_Entity struct {
Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
Fields []*LoadEntityReply_EntityField `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"`
// contains filtered or unexported fields
}
func (*LoadEntityReply_Entity) Descriptor
deprecated
func (*LoadEntityReply_Entity) Descriptor() ([]byte, []int)
Deprecated: Use LoadEntityReply_Entity.ProtoReflect.Descriptor instead.
func (*LoadEntityReply_Entity) GetComment ¶
func (x *LoadEntityReply_Entity) GetComment() string
func (*LoadEntityReply_Entity) GetDatabase ¶
func (x *LoadEntityReply_Entity) GetDatabase() string
func (*LoadEntityReply_Entity) GetFields ¶
func (x *LoadEntityReply_Entity) GetFields() []*LoadEntityReply_EntityField
func (*LoadEntityReply_Entity) GetName ¶
func (x *LoadEntityReply_Entity) GetName() string
func (*LoadEntityReply_Entity) ProtoMessage ¶
func (*LoadEntityReply_Entity) ProtoMessage()
func (*LoadEntityReply_Entity) ProtoReflect ¶
func (x *LoadEntityReply_Entity) ProtoReflect() protoreflect.Message
func (*LoadEntityReply_Entity) Reset ¶
func (x *LoadEntityReply_Entity) Reset()
func (*LoadEntityReply_Entity) String ¶
func (x *LoadEntityReply_Entity) String() string
func (*LoadEntityReply_Entity) Validate ¶
func (m *LoadEntityReply_Entity) Validate() error
Validate checks the field values on LoadEntityReply_Entity 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 (*LoadEntityReply_Entity) ValidateAll ¶
func (m *LoadEntityReply_Entity) ValidateAll() error
ValidateAll checks the field values on LoadEntityReply_Entity 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 LoadEntityReply_EntityMultiError, or nil if none found.
type LoadEntityReply_EntityField ¶
type LoadEntityReply_EntityField struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
// contains filtered or unexported fields
}
func (*LoadEntityReply_EntityField) Descriptor
deprecated
func (*LoadEntityReply_EntityField) Descriptor() ([]byte, []int)
Deprecated: Use LoadEntityReply_EntityField.ProtoReflect.Descriptor instead.
func (*LoadEntityReply_EntityField) GetComment ¶
func (x *LoadEntityReply_EntityField) GetComment() string
func (*LoadEntityReply_EntityField) GetName ¶
func (x *LoadEntityReply_EntityField) GetName() string
func (*LoadEntityReply_EntityField) ProtoMessage ¶
func (*LoadEntityReply_EntityField) ProtoMessage()
func (*LoadEntityReply_EntityField) ProtoReflect ¶
func (x *LoadEntityReply_EntityField) ProtoReflect() protoreflect.Message
func (*LoadEntityReply_EntityField) Reset ¶
func (x *LoadEntityReply_EntityField) Reset()
func (*LoadEntityReply_EntityField) String ¶
func (x *LoadEntityReply_EntityField) String() string
func (*LoadEntityReply_EntityField) Validate ¶
func (m *LoadEntityReply_EntityField) Validate() error
Validate checks the field values on LoadEntityReply_EntityField 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 (*LoadEntityReply_EntityField) ValidateAll ¶
func (m *LoadEntityReply_EntityField) ValidateAll() error
ValidateAll checks the field values on LoadEntityReply_EntityField 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 LoadEntityReply_EntityFieldMultiError, or nil if none found.
type LoadEntityReply_EntityFieldMultiError ¶
type LoadEntityReply_EntityFieldMultiError []error
LoadEntityReply_EntityFieldMultiError is an error wrapping multiple validation errors returned by LoadEntityReply_EntityField.ValidateAll() if the designated constraints aren't met.
func (LoadEntityReply_EntityFieldMultiError) AllErrors ¶
func (m LoadEntityReply_EntityFieldMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoadEntityReply_EntityFieldMultiError) Error ¶
func (m LoadEntityReply_EntityFieldMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoadEntityReply_EntityFieldValidationError ¶
type LoadEntityReply_EntityFieldValidationError struct {
// contains filtered or unexported fields
}
LoadEntityReply_EntityFieldValidationError is the validation error returned by LoadEntityReply_EntityField.Validate if the designated constraints aren't met.
func (LoadEntityReply_EntityFieldValidationError) Cause ¶
func (e LoadEntityReply_EntityFieldValidationError) Cause() error
Cause function returns cause value.
func (LoadEntityReply_EntityFieldValidationError) Error ¶
func (e LoadEntityReply_EntityFieldValidationError) Error() string
Error satisfies the builtin error interface
func (LoadEntityReply_EntityFieldValidationError) ErrorName ¶
func (e LoadEntityReply_EntityFieldValidationError) ErrorName() string
ErrorName returns error name.
func (LoadEntityReply_EntityFieldValidationError) Field ¶
func (e LoadEntityReply_EntityFieldValidationError) Field() string
Field function returns field value.
func (LoadEntityReply_EntityFieldValidationError) Key ¶
func (e LoadEntityReply_EntityFieldValidationError) Key() bool
Key function returns key value.
func (LoadEntityReply_EntityFieldValidationError) Reason ¶
func (e LoadEntityReply_EntityFieldValidationError) Reason() string
Reason function returns reason value.
type LoadEntityReply_EntityMultiError ¶
type LoadEntityReply_EntityMultiError []error
LoadEntityReply_EntityMultiError is an error wrapping multiple validation errors returned by LoadEntityReply_Entity.ValidateAll() if the designated constraints aren't met.
func (LoadEntityReply_EntityMultiError) AllErrors ¶
func (m LoadEntityReply_EntityMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoadEntityReply_EntityMultiError) Error ¶
func (m LoadEntityReply_EntityMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoadEntityReply_EntityValidationError ¶
type LoadEntityReply_EntityValidationError struct {
// contains filtered or unexported fields
}
LoadEntityReply_EntityValidationError is the validation error returned by LoadEntityReply_Entity.Validate if the designated constraints aren't met.
func (LoadEntityReply_EntityValidationError) Cause ¶
func (e LoadEntityReply_EntityValidationError) Cause() error
Cause function returns cause value.
func (LoadEntityReply_EntityValidationError) Error ¶
func (e LoadEntityReply_EntityValidationError) Error() string
Error satisfies the builtin error interface
func (LoadEntityReply_EntityValidationError) ErrorName ¶
func (e LoadEntityReply_EntityValidationError) ErrorName() string
ErrorName returns error name.
func (LoadEntityReply_EntityValidationError) Field ¶
func (e LoadEntityReply_EntityValidationError) Field() string
Field function returns field value.
func (LoadEntityReply_EntityValidationError) Key ¶
func (e LoadEntityReply_EntityValidationError) Key() bool
Key function returns key value.
func (LoadEntityReply_EntityValidationError) Reason ¶
func (e LoadEntityReply_EntityValidationError) Reason() string
Reason function returns reason value.
type UnimplementedEntityServer ¶
type UnimplementedEntityServer struct {
}
UnimplementedEntityServer must be embedded to have forward compatible implementations.
func (UnimplementedEntityServer) LoadEntity ¶
func (UnimplementedEntityServer) LoadEntity(context.Context, *emptypb.Empty) (*LoadEntityReply, error)
type UnsafeEntityServer ¶
type UnsafeEntityServer interface {
// contains filtered or unexported methods
}
UnsafeEntityServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EntityServer will result in compilation errors.