123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: log_service.proto
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb
- import (
- context "context"
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- math "math"
- v1 "smart-supplier-management-gateway/pb/v1"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- func init() {
- proto.RegisterFile("log_service.proto", fileDescriptor_c40f363b56b74b92)
- }
- var fileDescriptor_c40f363b56b74b92 = []byte{
- // 181 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8e, 0x31, 0xcb, 0xc2, 0x30,
- 0x10, 0x40, 0x3f, 0xbe, 0xa1, 0x42, 0x10, 0xb4, 0x19, 0x1c, 0x3a, 0x8a, 0xb8, 0x35, 0xa5, 0xfa,
- 0x0b, 0x74, 0xce, 0x64, 0x37, 0x97, 0x92, 0xda, 0x23, 0x04, 0xd2, 0x5e, 0x9a, 0x5c, 0x2b, 0xfd,
- 0xf7, 0xd2, 0x56, 0x41, 0xb7, 0xbb, 0xf7, 0x78, 0xdc, 0xb1, 0xd8, 0xa2, 0x2e, 0x03, 0xf8, 0xc1,
- 0x3c, 0x40, 0x38, 0x8f, 0x84, 0xfc, 0xdf, 0x55, 0xc9, 0x6e, 0xc8, 0x33, 0x74, 0xe0, 0x15, 0x19,
- 0x6c, 0x4b, 0x8b, 0x7a, 0x71, 0xa7, 0x8e, 0xad, 0x8b, 0x46, 0x79, 0x2a, 0x0c, 0x81, 0x44, 0xcd,
- 0x05, 0x8b, 0x24, 0xea, 0x4b, 0x5d, 0xf3, 0x58, 0x0c, 0xb9, 0x58, 0xe6, 0x1b, 0x74, 0x3d, 0x04,
- 0x4a, 0x36, 0xdf, 0xc8, 0xd9, 0x71, 0xff, 0xc7, 0x73, 0xb6, 0x92, 0xa8, 0xa5, 0x09, 0xc4, 0xf9,
- 0xdb, 0x4e, 0xcb, 0xa7, 0xd8, 0xfe, 0xb0, 0x39, 0xb9, 0x1e, 0xef, 0x87, 0x30, 0x9d, 0x4c, 0x43,
- 0xef, 0x9c, 0x35, 0xe0, 0xd3, 0x46, 0xb5, 0x4a, 0x43, 0x03, 0x2d, 0xa5, 0x5a, 0x11, 0x3c, 0xd5,
- 0x98, 0xb9, 0xaa, 0x8a, 0xe6, 0x0f, 0xcf, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x53, 0x30,
- 0xaf, 0xd2, 0x00, 0x00, 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // SmartSiteLogClient is the client API for SmartSiteLog service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type SmartSiteLogClient interface {
- LogAdd(ctx context.Context, in *v1.LogAddRequest, opts ...grpc.CallOption) (*v1.LogAddReply, error)
- LogList(ctx context.Context, in *v1.LogListRequest, opts ...grpc.CallOption) (*v1.LogListReply, error)
- }
- type smartSiteLogClient struct {
- cc grpc.ClientConnInterface
- }
- func NewSmartSiteLogClient(cc grpc.ClientConnInterface) SmartSiteLogClient {
- return &smartSiteLogClient{cc}
- }
- func (c *smartSiteLogClient) LogAdd(ctx context.Context, in *v1.LogAddRequest, opts ...grpc.CallOption) (*v1.LogAddReply, error) {
- out := new(v1.LogAddReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteLog/LogAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteLogClient) LogList(ctx context.Context, in *v1.LogListRequest, opts ...grpc.CallOption) (*v1.LogListReply, error) {
- out := new(v1.LogListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteLog/LogList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // SmartSiteLogServer is the server API for SmartSiteLog service.
- type SmartSiteLogServer interface {
- LogAdd(context.Context, *v1.LogAddRequest) (*v1.LogAddReply, error)
- LogList(context.Context, *v1.LogListRequest) (*v1.LogListReply, error)
- }
- // UnimplementedSmartSiteLogServer can be embedded to have forward compatible implementations.
- type UnimplementedSmartSiteLogServer struct {
- }
- func (*UnimplementedSmartSiteLogServer) LogAdd(ctx context.Context, req *v1.LogAddRequest) (*v1.LogAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method LogAdd not implemented")
- }
- func (*UnimplementedSmartSiteLogServer) LogList(ctx context.Context, req *v1.LogListRequest) (*v1.LogListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method LogList not implemented")
- }
- func RegisterSmartSiteLogServer(s *grpc.Server, srv SmartSiteLogServer) {
- s.RegisterService(&_SmartSiteLog_serviceDesc, srv)
- }
- func _SmartSiteLog_LogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.LogAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteLogServer).LogAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteLog/LogAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteLogServer).LogAdd(ctx, req.(*v1.LogAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteLog_LogList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.LogListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteLogServer).LogList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteLog/LogList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteLogServer).LogList(ctx, req.(*v1.LogListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _SmartSiteLog_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.SmartSiteLog",
- HandlerType: (*SmartSiteLogServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "LogAdd",
- Handler: _SmartSiteLog_LogAdd_Handler,
- },
- {
- MethodName: "LogList",
- Handler: _SmartSiteLog_LogList_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "log_service.proto",
- }
|