Documentation
¶
Index ¶
- Variables
- func RegisterConfigServiceServer(s grpc_go.ServiceRegistrar, srv ConfigServiceServer)
- type ConfigServiceClient
- type ConfigServiceClientImpl
- type ConfigServiceServer
- type Harbor
- type HarborRequest
- type HarborResponse
- type UnimplementedConfigServiceServer
- func (UnimplementedConfigServiceServer) ListHarbors(context.Context, *HarborRequest) (*HarborResponse, error)
- func (s *UnimplementedConfigServiceServer) XXX_GetProxyImpl() protocol.Invoker
- func (s *UnimplementedConfigServiceServer) XXX_InterfaceName() string
- func (s *UnimplementedConfigServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc
- func (s *UnimplementedConfigServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)
- type UnsafeConfigServiceServer
Constants ¶
This section is empty.
Variables ¶
var ConfigService_ServiceDesc = grpc_go.ServiceDesc{ ServiceName: "api.ConfigService", HandlerType: (*ConfigServiceServer)(nil), Methods: []grpc_go.MethodDesc{ { MethodName: "ListHarbors", Handler: _ConfigService_ListHarbors_Handler, }, }, Streams: []grpc_go.StreamDesc{}, Metadata: "api.proto", }
ConfigService_ServiceDesc is the grpc_go.ServiceDesc for ConfigService service. It's only intended for direct use with grpc_go.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterConfigServiceServer ¶
func RegisterConfigServiceServer(s grpc_go.ServiceRegistrar, srv ConfigServiceServer)
Types ¶
type ConfigServiceClient ¶
type ConfigServiceClient interface {
ListHarbors(ctx context.Context, in *HarborRequest, opts ...grpc_go.CallOption) (*HarborResponse, common.ErrorWithAttachment)
}
ConfigServiceClient is the client API for ConfigService 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 NewConfigServiceClient ¶
func NewConfigServiceClient(cc *triple.TripleConn) ConfigServiceClient
type ConfigServiceClientImpl ¶
type ConfigServiceClientImpl struct {
ListHarbors func(ctx context.Context, in *HarborRequest) (*HarborResponse, error)
}
func (*ConfigServiceClientImpl) GetDubboStub ¶
func (c *ConfigServiceClientImpl) GetDubboStub(cc *triple.TripleConn) ConfigServiceClient
func (*ConfigServiceClientImpl) XXX_InterfaceName ¶
func (c *ConfigServiceClientImpl) XXX_InterfaceName() string
type ConfigServiceServer ¶
type ConfigServiceServer interface { ListHarbors(context.Context, *HarborRequest) (*HarborResponse, error) // contains filtered or unexported methods }
ConfigServiceServer is the server API for ConfigService service. All implementations must embed UnimplementedConfigServiceServer for forward compatibility
type Harbor ¶
type Harbor struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` // id of the harbor Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` // chinese name of the harbor EnName string `protobuf:"bytes,3,opt,name=EnName,proto3" json:"EnName,omitempty"` // english name of the harbor // contains filtered or unexported fields }
func (*Harbor) Descriptor
deprecated
func (*Harbor) ProtoMessage ¶
func (*Harbor) ProtoMessage()
func (*Harbor) ProtoReflect ¶
func (x *Harbor) ProtoReflect() protoreflect.Message
type HarborRequest ¶
type HarborRequest struct {
// contains filtered or unexported fields
}
func (*HarborRequest) Descriptor
deprecated
func (*HarborRequest) Descriptor() ([]byte, []int)
Deprecated: Use HarborRequest.ProtoReflect.Descriptor instead.
func (*HarborRequest) ProtoMessage ¶
func (*HarborRequest) ProtoMessage()
func (*HarborRequest) ProtoReflect ¶
func (x *HarborRequest) ProtoReflect() protoreflect.Message
func (*HarborRequest) Reset ¶
func (x *HarborRequest) Reset()
func (*HarborRequest) String ¶
func (x *HarborRequest) String() string
type HarborResponse ¶
type HarborResponse struct { Data []*Harbor `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*HarborResponse) Descriptor
deprecated
func (*HarborResponse) Descriptor() ([]byte, []int)
Deprecated: Use HarborResponse.ProtoReflect.Descriptor instead.
func (*HarborResponse) GetData ¶
func (x *HarborResponse) GetData() []*Harbor
func (*HarborResponse) ProtoMessage ¶
func (*HarborResponse) ProtoMessage()
func (*HarborResponse) ProtoReflect ¶
func (x *HarborResponse) ProtoReflect() protoreflect.Message
func (*HarborResponse) Reset ¶
func (x *HarborResponse) Reset()
func (*HarborResponse) String ¶
func (x *HarborResponse) String() string
type UnimplementedConfigServiceServer ¶
type UnimplementedConfigServiceServer struct {
// contains filtered or unexported fields
}
UnimplementedConfigServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedConfigServiceServer) ListHarbors ¶
func (UnimplementedConfigServiceServer) ListHarbors(context.Context, *HarborRequest) (*HarborResponse, error)
func (*UnimplementedConfigServiceServer) XXX_GetProxyImpl ¶
func (s *UnimplementedConfigServiceServer) XXX_GetProxyImpl() protocol.Invoker
func (*UnimplementedConfigServiceServer) XXX_InterfaceName ¶
func (s *UnimplementedConfigServiceServer) XXX_InterfaceName() string
func (*UnimplementedConfigServiceServer) XXX_ServiceDesc ¶
func (s *UnimplementedConfigServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc
func (*UnimplementedConfigServiceServer) XXX_SetProxyImpl ¶
func (s *UnimplementedConfigServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)
type UnsafeConfigServiceServer ¶
type UnsafeConfigServiceServer interface {
// contains filtered or unexported methods
}
UnsafeConfigServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConfigServiceServer will result in compilation errors.