126 lines
4.8 KiB
Go
126 lines
4.8 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.6.1
|
|
// - protoc v3.12.4
|
|
// source: service_httpdns_board.proto
|
|
|
|
package pb
|
|
|
|
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.64.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion9
|
|
|
|
const (
|
|
HTTPDNSBoardService_ComposeHTTPDNSBoard_FullMethodName = "/pb.HTTPDNSBoardService/composeHTTPDNSBoard"
|
|
)
|
|
|
|
// HTTPDNSBoardServiceClient is the client API for HTTPDNSBoardService 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.
|
|
//
|
|
// HTTPDNS 看板服务
|
|
type HTTPDNSBoardServiceClient interface {
|
|
// 组合看板数据
|
|
ComposeHTTPDNSBoard(ctx context.Context, in *ComposeHTTPDNSBoardRequest, opts ...grpc.CallOption) (*ComposeHTTPDNSBoardResponse, error)
|
|
}
|
|
|
|
type hTTPDNSBoardServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewHTTPDNSBoardServiceClient(cc grpc.ClientConnInterface) HTTPDNSBoardServiceClient {
|
|
return &hTTPDNSBoardServiceClient{cc}
|
|
}
|
|
|
|
func (c *hTTPDNSBoardServiceClient) ComposeHTTPDNSBoard(ctx context.Context, in *ComposeHTTPDNSBoardRequest, opts ...grpc.CallOption) (*ComposeHTTPDNSBoardResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(ComposeHTTPDNSBoardResponse)
|
|
err := c.cc.Invoke(ctx, HTTPDNSBoardService_ComposeHTTPDNSBoard_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// HTTPDNSBoardServiceServer is the server API for HTTPDNSBoardService service.
|
|
// All implementations should embed UnimplementedHTTPDNSBoardServiceServer
|
|
// for forward compatibility.
|
|
//
|
|
// HTTPDNS 看板服务
|
|
type HTTPDNSBoardServiceServer interface {
|
|
// 组合看板数据
|
|
ComposeHTTPDNSBoard(context.Context, *ComposeHTTPDNSBoardRequest) (*ComposeHTTPDNSBoardResponse, error)
|
|
}
|
|
|
|
// UnimplementedHTTPDNSBoardServiceServer should be embedded to have
|
|
// forward compatible implementations.
|
|
//
|
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
|
// pointer dereference when methods are called.
|
|
type UnimplementedHTTPDNSBoardServiceServer struct{}
|
|
|
|
func (UnimplementedHTTPDNSBoardServiceServer) ComposeHTTPDNSBoard(context.Context, *ComposeHTTPDNSBoardRequest) (*ComposeHTTPDNSBoardResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method ComposeHTTPDNSBoard not implemented")
|
|
}
|
|
func (UnimplementedHTTPDNSBoardServiceServer) testEmbeddedByValue() {}
|
|
|
|
// UnsafeHTTPDNSBoardServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to HTTPDNSBoardServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeHTTPDNSBoardServiceServer interface {
|
|
mustEmbedUnimplementedHTTPDNSBoardServiceServer()
|
|
}
|
|
|
|
func RegisterHTTPDNSBoardServiceServer(s grpc.ServiceRegistrar, srv HTTPDNSBoardServiceServer) {
|
|
// If the following call panics, it indicates UnimplementedHTTPDNSBoardServiceServer was
|
|
// embedded by pointer and is nil. This will cause panics if an
|
|
// unimplemented method is ever invoked, so we test this at initialization
|
|
// time to prevent it from happening at runtime later due to I/O.
|
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
|
t.testEmbeddedByValue()
|
|
}
|
|
s.RegisterService(&HTTPDNSBoardService_ServiceDesc, srv)
|
|
}
|
|
|
|
func _HTTPDNSBoardService_ComposeHTTPDNSBoard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ComposeHTTPDNSBoardRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HTTPDNSBoardServiceServer).ComposeHTTPDNSBoard(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: HTTPDNSBoardService_ComposeHTTPDNSBoard_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HTTPDNSBoardServiceServer).ComposeHTTPDNSBoard(ctx, req.(*ComposeHTTPDNSBoardRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// HTTPDNSBoardService_ServiceDesc is the grpc.ServiceDesc for HTTPDNSBoardService service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var HTTPDNSBoardService_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "pb.HTTPDNSBoardService",
|
|
HandlerType: (*HTTPDNSBoardServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "composeHTTPDNSBoard",
|
|
Handler: _HTTPDNSBoardService_ComposeHTTPDNSBoard_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "service_httpdns_board.proto",
|
|
}
|