entity

package
v0.0.0-...-50d5168 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Entity_LoadEntity_FullMethodName = "/resource.api.entity.Entity/LoadEntity"
)
View Source
const OperationEntityLoadEntity = "/resource.api.entity.Entity/LoadEntity"

Variables

View Source
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)

View Source
var File_api_entity_proto_entity_proto protoreflect.FileDescriptor
View Source
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 EntityHTTPServer interface {
	// LoadEntity LoadEntity 载入全部系统的实体
	LoadEntity(context.Context, *emptypb.Empty) (*LoadEntityReply, error)
}

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

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

Cause function returns cause value.

func (LoadEntityReplyValidationError) Error

Error satisfies the builtin error interface

func (LoadEntityReplyValidationError) ErrorName

func (e LoadEntityReplyValidationError) ErrorName() string

ErrorName returns error name.

func (LoadEntityReplyValidationError) Field

Field function returns field value.

func (LoadEntityReplyValidationError) Key

Key function returns key value.

func (LoadEntityReplyValidationError) Reason

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 (*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 (*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

AllErrors returns a list of validation violation errors.

func (LoadEntityReply_EntityFieldMultiError) Error

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

Cause function returns cause value.

func (LoadEntityReply_EntityFieldValidationError) Error

Error satisfies the builtin error interface

func (LoadEntityReply_EntityFieldValidationError) ErrorName

ErrorName returns error name.

func (LoadEntityReply_EntityFieldValidationError) Field

Field function returns field value.

func (LoadEntityReply_EntityFieldValidationError) Key

Key function returns key value.

func (LoadEntityReply_EntityFieldValidationError) Reason

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

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

Cause function returns cause value.

func (LoadEntityReply_EntityValidationError) Error

Error satisfies the builtin error interface

func (LoadEntityReply_EntityValidationError) ErrorName

ErrorName returns error name.

func (LoadEntityReply_EntityValidationError) Field

Field function returns field value.

func (LoadEntityReply_EntityValidationError) Key

Key function returns key value.

func (LoadEntityReply_EntityValidationError) Reason

Reason function returns reason value.

type UnimplementedEntityServer

type UnimplementedEntityServer struct {
}

UnimplementedEntityServer must be embedded to have forward compatible implementations.

func (UnimplementedEntityServer) LoadEntity

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.

Jump to

Keyboard shortcuts

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