1 Star 0 Fork 0

谈子文 / keyauth-tz

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
endpoint_grpc.pb.go 3.33 KB
一键复制 编辑 原始数据 按行查看 历史
谈子文 提交于 2023-10-26 01:10 . endpoint部分
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package endpoint
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// RPCClient is the client API for RPC 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.
type RPCClient interface {
RegistryEndpoint(ctx context.Context, in *EndpointSet, opts ...grpc.CallOption) (*RegistryResponse, error)
}
type rPCClient struct {
cc grpc.ClientConnInterface
}
func NewRPCClient(cc grpc.ClientConnInterface) RPCClient {
return &rPCClient{cc}
}
func (c *rPCClient) RegistryEndpoint(ctx context.Context, in *EndpointSet, opts ...grpc.CallOption) (*RegistryResponse, error) {
out := new(RegistryResponse)
err := c.cc.Invoke(ctx, "/keyauth.apps.endpoint.RPC/RegistryEndpoint", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RPCServer is the server API for RPC service.
// All implementations must embed UnimplementedRPCServer
// for forward compatibility
type RPCServer interface {
RegistryEndpoint(context.Context, *EndpointSet) (*RegistryResponse, error)
mustEmbedUnimplementedRPCServer()
}
// UnimplementedRPCServer must be embedded to have forward compatible implementations.
type UnimplementedRPCServer struct {
}
func (UnimplementedRPCServer) RegistryEndpoint(context.Context, *EndpointSet) (*RegistryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RegistryEndpoint not implemented")
}
func (UnimplementedRPCServer) mustEmbedUnimplementedRPCServer() {}
// UnsafeRPCServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to RPCServer will
// result in compilation errors.
type UnsafeRPCServer interface {
mustEmbedUnimplementedRPCServer()
}
func RegisterRPCServer(s grpc.ServiceRegistrar, srv RPCServer) {
s.RegisterService(&RPC_ServiceDesc, srv)
}
func _RPC_RegistryEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EndpointSet)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RPCServer).RegistryEndpoint(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/keyauth.apps.endpoint.RPC/RegistryEndpoint",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RPCServer).RegistryEndpoint(ctx, req.(*EndpointSet))
}
return interceptor(ctx, in, info, handler)
}
// RPC_ServiceDesc is the grpc.ServiceDesc for RPC service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var RPC_ServiceDesc = grpc.ServiceDesc{
ServiceName: "keyauth.apps.endpoint.RPC",
HandlerType: (*RPCServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "RegistryEndpoint",
Handler: _RPC_RegistryEndpoint_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "apps/endpoint/pb/endpoint.proto",
}
Go
1
https://gitee.com/talk-about-articles/keyauth-tz.git
git@gitee.com:talk-about-articles/keyauth-tz.git
talk-about-articles
keyauth-tz
keyauth-tz
v1.0.33

搜索帮助