a1c377489c
CI / changes (push) Successful in 38s
CI / ad (push) Successful in 29s
CI / admin (push) Successful in 20s
CI / bff (push) Successful in 15s
CI / chore (push) Successful in 17s
CI / equipment (push) Successful in 15s
CI / express (push) Successful in 16s
CI / product (push) Successful in 15s
CI / record (push) Successful in 15s
CI / sale (push) Successful in 16s
CI / task (push) Successful in 15s
CI / user (push) Successful in 16s
CI / wecom (push) Successful in 16s
844 lines
31 KiB
Go
844 lines
31 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.6.2
|
|
// - protoc v4.25.8
|
|
// source: factory/factory.proto
|
|
|
|
package factory
|
|
|
|
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 (
|
|
Factory_GroupItems_FullMethodName = "/factory.Factory/GroupItems"
|
|
Factory_GroupInfo_FullMethodName = "/factory.Factory/GroupInfo"
|
|
Factory_GroupCreate_FullMethodName = "/factory.Factory/GroupCreate"
|
|
Factory_GroupEdit_FullMethodName = "/factory.Factory/GroupEdit"
|
|
Factory_GroupStatus_FullMethodName = "/factory.Factory/GroupStatus"
|
|
Factory_GroupNames_FullMethodName = "/factory.Factory/GroupNames"
|
|
Factory_GroupPassword_FullMethodName = "/factory.Factory/GroupPassword"
|
|
Factory_PostItems_FullMethodName = "/factory.Factory/PostItems"
|
|
Factory_PostInfo_FullMethodName = "/factory.Factory/PostInfo"
|
|
Factory_PostCreate_FullMethodName = "/factory.Factory/PostCreate"
|
|
Factory_PostEdit_FullMethodName = "/factory.Factory/PostEdit"
|
|
Factory_PostStatus_FullMethodName = "/factory.Factory/PostStatus"
|
|
Factory_PostNames_FullMethodName = "/factory.Factory/PostNames"
|
|
Factory_LogItems_FullMethodName = "/factory.Factory/LogItems"
|
|
Factory_WorkerCreate_FullMethodName = "/factory.Factory/WorkerCreate"
|
|
Factory_WorkerEdit_FullMethodName = "/factory.Factory/WorkerEdit"
|
|
Factory_WorkerStatus_FullMethodName = "/factory.Factory/WorkerStatus"
|
|
Factory_WorkerNames_FullMethodName = "/factory.Factory/WorkerNames"
|
|
Factory_WorkerItems_FullMethodName = "/factory.Factory/WorkerItems"
|
|
Factory_WorkerInfo_FullMethodName = "/factory.Factory/WorkerInfo"
|
|
)
|
|
|
|
// FactoryClient is the client API for Factory 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 FactoryClient interface {
|
|
GroupItems(ctx context.Context, in *GroupItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
|
GroupInfo(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Response, error)
|
|
GroupCreate(ctx context.Context, in *GroupCreateRequest, opts ...grpc.CallOption) (*Response, error)
|
|
GroupEdit(ctx context.Context, in *GroupEditRequest, opts ...grpc.CallOption) (*Response, error)
|
|
GroupStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*Response, error)
|
|
GroupNames(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Response, error)
|
|
GroupPassword(ctx context.Context, in *GroupPasswordRequest, opts ...grpc.CallOption) (*Response, error)
|
|
PostItems(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Response, error)
|
|
PostInfo(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Response, error)
|
|
PostCreate(ctx context.Context, in *PostCreateRequest, opts ...grpc.CallOption) (*Response, error)
|
|
PostEdit(ctx context.Context, in *PostEditRequest, opts ...grpc.CallOption) (*Response, error)
|
|
PostStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*Response, error)
|
|
PostNames(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Response, error)
|
|
LogItems(ctx context.Context, in *LogItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
|
WorkerCreate(ctx context.Context, in *WorkerCreateRequest, opts ...grpc.CallOption) (*Response, error)
|
|
WorkerEdit(ctx context.Context, in *WorkerEditRequest, opts ...grpc.CallOption) (*Response, error)
|
|
WorkerStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*Response, error)
|
|
WorkerNames(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Response, error)
|
|
WorkerItems(ctx context.Context, in *WorkerItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
|
WorkerInfo(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Response, error)
|
|
}
|
|
|
|
type factoryClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewFactoryClient(cc grpc.ClientConnInterface) FactoryClient {
|
|
return &factoryClient{cc}
|
|
}
|
|
|
|
func (c *factoryClient) GroupItems(ctx context.Context, in *GroupItemsRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_GroupItems_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) GroupInfo(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_GroupInfo_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) GroupCreate(ctx context.Context, in *GroupCreateRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_GroupCreate_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) GroupEdit(ctx context.Context, in *GroupEditRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_GroupEdit_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) GroupStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_GroupStatus_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) GroupNames(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_GroupNames_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) GroupPassword(ctx context.Context, in *GroupPasswordRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_GroupPassword_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) PostItems(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_PostItems_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) PostInfo(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_PostInfo_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) PostCreate(ctx context.Context, in *PostCreateRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_PostCreate_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) PostEdit(ctx context.Context, in *PostEditRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_PostEdit_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) PostStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_PostStatus_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) PostNames(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_PostNames_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) LogItems(ctx context.Context, in *LogItemsRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_LogItems_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) WorkerCreate(ctx context.Context, in *WorkerCreateRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_WorkerCreate_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) WorkerEdit(ctx context.Context, in *WorkerEditRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_WorkerEdit_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) WorkerStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_WorkerStatus_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) WorkerNames(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_WorkerNames_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) WorkerItems(ctx context.Context, in *WorkerItemsRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_WorkerItems_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *factoryClient) WorkerInfo(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, Factory_WorkerInfo_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// FactoryServer is the server API for Factory service.
|
|
// All implementations must embed UnimplementedFactoryServer
|
|
// for forward compatibility.
|
|
type FactoryServer interface {
|
|
GroupItems(context.Context, *GroupItemsRequest) (*Response, error)
|
|
GroupInfo(context.Context, *IdRequest) (*Response, error)
|
|
GroupCreate(context.Context, *GroupCreateRequest) (*Response, error)
|
|
GroupEdit(context.Context, *GroupEditRequest) (*Response, error)
|
|
GroupStatus(context.Context, *StatusRequest) (*Response, error)
|
|
GroupNames(context.Context, *EmptyRequest) (*Response, error)
|
|
GroupPassword(context.Context, *GroupPasswordRequest) (*Response, error)
|
|
PostItems(context.Context, *EmptyRequest) (*Response, error)
|
|
PostInfo(context.Context, *IdRequest) (*Response, error)
|
|
PostCreate(context.Context, *PostCreateRequest) (*Response, error)
|
|
PostEdit(context.Context, *PostEditRequest) (*Response, error)
|
|
PostStatus(context.Context, *StatusRequest) (*Response, error)
|
|
PostNames(context.Context, *EmptyRequest) (*Response, error)
|
|
LogItems(context.Context, *LogItemsRequest) (*Response, error)
|
|
WorkerCreate(context.Context, *WorkerCreateRequest) (*Response, error)
|
|
WorkerEdit(context.Context, *WorkerEditRequest) (*Response, error)
|
|
WorkerStatus(context.Context, *StatusRequest) (*Response, error)
|
|
WorkerNames(context.Context, *EmptyRequest) (*Response, error)
|
|
WorkerItems(context.Context, *WorkerItemsRequest) (*Response, error)
|
|
WorkerInfo(context.Context, *IdRequest) (*Response, error)
|
|
mustEmbedUnimplementedFactoryServer()
|
|
}
|
|
|
|
// UnimplementedFactoryServer must 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 UnimplementedFactoryServer struct{}
|
|
|
|
func (UnimplementedFactoryServer) GroupItems(context.Context, *GroupItemsRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GroupItems not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) GroupInfo(context.Context, *IdRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GroupInfo not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) GroupCreate(context.Context, *GroupCreateRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GroupCreate not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) GroupEdit(context.Context, *GroupEditRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GroupEdit not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) GroupStatus(context.Context, *StatusRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GroupStatus not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) GroupNames(context.Context, *EmptyRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GroupNames not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) GroupPassword(context.Context, *GroupPasswordRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GroupPassword not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) PostItems(context.Context, *EmptyRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method PostItems not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) PostInfo(context.Context, *IdRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method PostInfo not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) PostCreate(context.Context, *PostCreateRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method PostCreate not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) PostEdit(context.Context, *PostEditRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method PostEdit not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) PostStatus(context.Context, *StatusRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method PostStatus not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) PostNames(context.Context, *EmptyRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method PostNames not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) LogItems(context.Context, *LogItemsRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method LogItems not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) WorkerCreate(context.Context, *WorkerCreateRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method WorkerCreate not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) WorkerEdit(context.Context, *WorkerEditRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method WorkerEdit not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) WorkerStatus(context.Context, *StatusRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method WorkerStatus not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) WorkerNames(context.Context, *EmptyRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method WorkerNames not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) WorkerItems(context.Context, *WorkerItemsRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method WorkerItems not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) WorkerInfo(context.Context, *IdRequest) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method WorkerInfo not implemented")
|
|
}
|
|
func (UnimplementedFactoryServer) mustEmbedUnimplementedFactoryServer() {}
|
|
func (UnimplementedFactoryServer) testEmbeddedByValue() {}
|
|
|
|
// UnsafeFactoryServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to FactoryServer will
|
|
// result in compilation errors.
|
|
type UnsafeFactoryServer interface {
|
|
mustEmbedUnimplementedFactoryServer()
|
|
}
|
|
|
|
func RegisterFactoryServer(s grpc.ServiceRegistrar, srv FactoryServer) {
|
|
// If the following call panics, it indicates UnimplementedFactoryServer 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(&Factory_ServiceDesc, srv)
|
|
}
|
|
|
|
func _Factory_GroupItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GroupItemsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).GroupItems(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_GroupItems_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).GroupItems(ctx, req.(*GroupItemsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_GroupInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(IdRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).GroupInfo(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_GroupInfo_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).GroupInfo(ctx, req.(*IdRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_GroupCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GroupCreateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).GroupCreate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_GroupCreate_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).GroupCreate(ctx, req.(*GroupCreateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_GroupEdit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GroupEditRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).GroupEdit(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_GroupEdit_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).GroupEdit(ctx, req.(*GroupEditRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_GroupStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(StatusRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).GroupStatus(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_GroupStatus_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).GroupStatus(ctx, req.(*StatusRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_GroupNames_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(EmptyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).GroupNames(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_GroupNames_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).GroupNames(ctx, req.(*EmptyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_GroupPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GroupPasswordRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).GroupPassword(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_GroupPassword_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).GroupPassword(ctx, req.(*GroupPasswordRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_PostItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(EmptyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).PostItems(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_PostItems_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).PostItems(ctx, req.(*EmptyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_PostInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(IdRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).PostInfo(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_PostInfo_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).PostInfo(ctx, req.(*IdRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_PostCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(PostCreateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).PostCreate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_PostCreate_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).PostCreate(ctx, req.(*PostCreateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_PostEdit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(PostEditRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).PostEdit(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_PostEdit_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).PostEdit(ctx, req.(*PostEditRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_PostStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(StatusRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).PostStatus(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_PostStatus_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).PostStatus(ctx, req.(*StatusRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_PostNames_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(EmptyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).PostNames(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_PostNames_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).PostNames(ctx, req.(*EmptyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_LogItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(LogItemsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).LogItems(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_LogItems_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).LogItems(ctx, req.(*LogItemsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_WorkerCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(WorkerCreateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).WorkerCreate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_WorkerCreate_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).WorkerCreate(ctx, req.(*WorkerCreateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_WorkerEdit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(WorkerEditRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).WorkerEdit(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_WorkerEdit_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).WorkerEdit(ctx, req.(*WorkerEditRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_WorkerStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(StatusRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).WorkerStatus(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_WorkerStatus_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).WorkerStatus(ctx, req.(*StatusRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_WorkerNames_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(EmptyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).WorkerNames(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_WorkerNames_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).WorkerNames(ctx, req.(*EmptyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_WorkerItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(WorkerItemsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).WorkerItems(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_WorkerItems_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).WorkerItems(ctx, req.(*WorkerItemsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Factory_WorkerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(IdRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(FactoryServer).WorkerInfo(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Factory_WorkerInfo_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(FactoryServer).WorkerInfo(ctx, req.(*IdRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// Factory_ServiceDesc is the grpc.ServiceDesc for Factory service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var Factory_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "factory.Factory",
|
|
HandlerType: (*FactoryServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GroupItems",
|
|
Handler: _Factory_GroupItems_Handler,
|
|
},
|
|
{
|
|
MethodName: "GroupInfo",
|
|
Handler: _Factory_GroupInfo_Handler,
|
|
},
|
|
{
|
|
MethodName: "GroupCreate",
|
|
Handler: _Factory_GroupCreate_Handler,
|
|
},
|
|
{
|
|
MethodName: "GroupEdit",
|
|
Handler: _Factory_GroupEdit_Handler,
|
|
},
|
|
{
|
|
MethodName: "GroupStatus",
|
|
Handler: _Factory_GroupStatus_Handler,
|
|
},
|
|
{
|
|
MethodName: "GroupNames",
|
|
Handler: _Factory_GroupNames_Handler,
|
|
},
|
|
{
|
|
MethodName: "GroupPassword",
|
|
Handler: _Factory_GroupPassword_Handler,
|
|
},
|
|
{
|
|
MethodName: "PostItems",
|
|
Handler: _Factory_PostItems_Handler,
|
|
},
|
|
{
|
|
MethodName: "PostInfo",
|
|
Handler: _Factory_PostInfo_Handler,
|
|
},
|
|
{
|
|
MethodName: "PostCreate",
|
|
Handler: _Factory_PostCreate_Handler,
|
|
},
|
|
{
|
|
MethodName: "PostEdit",
|
|
Handler: _Factory_PostEdit_Handler,
|
|
},
|
|
{
|
|
MethodName: "PostStatus",
|
|
Handler: _Factory_PostStatus_Handler,
|
|
},
|
|
{
|
|
MethodName: "PostNames",
|
|
Handler: _Factory_PostNames_Handler,
|
|
},
|
|
{
|
|
MethodName: "LogItems",
|
|
Handler: _Factory_LogItems_Handler,
|
|
},
|
|
{
|
|
MethodName: "WorkerCreate",
|
|
Handler: _Factory_WorkerCreate_Handler,
|
|
},
|
|
{
|
|
MethodName: "WorkerEdit",
|
|
Handler: _Factory_WorkerEdit_Handler,
|
|
},
|
|
{
|
|
MethodName: "WorkerStatus",
|
|
Handler: _Factory_WorkerStatus_Handler,
|
|
},
|
|
{
|
|
MethodName: "WorkerNames",
|
|
Handler: _Factory_WorkerNames_Handler,
|
|
},
|
|
{
|
|
MethodName: "WorkerItems",
|
|
Handler: _Factory_WorkerItems_Handler,
|
|
},
|
|
{
|
|
MethodName: "WorkerInfo",
|
|
Handler: _Factory_WorkerInfo_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "factory/factory.proto",
|
|
}
|