Documentation ¶
Index ¶
- Variables
- func RegisterAppServiceServer(s *grpc.Server, srv AppServiceServer)
- func RegisterSvcSericeServer(s *grpc.Server, srv SvcSericeServer)
- type App
- func (*App) Descriptor() ([]byte, []int)deprecated
- func (x *App) GetAppId() string
- func (x *App) GetCreateTime() string
- func (x *App) GetCreatedAt() string
- func (x *App) GetId() int64
- func (x *App) GetName() string
- func (x *App) GetUpdateTime() string
- func (*App) ProtoMessage()
- func (x *App) ProtoReflect() protoreflect.Message
- func (x *App) Reset()
- func (x *App) String() string
- type AppServiceClient
- type AppServiceServer
- type Empty
- type SvcSericeClient
- type SvcSericeServer
- type UnimplementedAppServiceServer
- func (*UnimplementedAppServiceServer) Create(context.Context, *App) (*common.Response, error)
- func (*UnimplementedAppServiceServer) Delete(context.Context, *App) (*common.Response, error)
- func (*UnimplementedAppServiceServer) DeleteById(context.Context, *App) (*common.Response, error)
- func (*UnimplementedAppServiceServer) Find(context.Context, *emptypb.Empty) (*common.Response, error)
- func (*UnimplementedAppServiceServer) Lists(context.Context, *common.Request) (*common.Responses, error)
- func (*UnimplementedAppServiceServer) Update(context.Context, *App) (*common.Response, error)
- type UnimplementedSvcSericeServer
Constants ¶
This section is empty.
Variables ¶
var File_app_model_proto protoreflect.FileDescriptor
var File_app_service_proto protoreflect.FileDescriptor
var File_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAppServiceServer ¶
func RegisterAppServiceServer(s *grpc.Server, srv AppServiceServer)
func RegisterSvcSericeServer ¶
func RegisterSvcSericeServer(s *grpc.Server, srv SvcSericeServer)
Types ¶
type App ¶
type App struct { // @inject_tag: json:"id" gorm:"primary_key;AUTO_INCREMENT;default:id;comment:id;size:20;" Id int64 `protobuf:"varint,100,opt,name=id,proto3" json:"id,omitempty"` // @inject_tag: json:"appId" gorm:"default:appId;comment:appId;size:255;" AppId string `protobuf:"bytes,101,opt,name=appId,proto3" json:"appId,omitempty"` // @inject_tag: json:"name" gorm:"default:应用名称;comment:应用名称;size:255;" Name string `protobuf:"bytes,102,opt,name=name,proto3" json:"name,omitempty"` // @inject_tag: json:"createTime" gorm:"default:创建时间;comment:创建时间;" CreateTime string `protobuf:"bytes,103,opt,name=createTime,proto3" json:"createTime,omitempty"` // @inject_tag: json:"updateTime" gorm:"default:更新时间;comment:更新时间;" UpdateTime string `protobuf:"bytes,104,opt,name=updateTime,proto3" json:"updateTime,omitempty"` // @inject_tag: json:"createdAt" gorm:"default:创建时间;comment:创建时间;" CreatedAt string `protobuf:"bytes,105,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // contains filtered or unexported fields }
func (*App) Descriptor
deprecated
func (*App) GetCreateTime ¶
func (*App) GetCreatedAt ¶
func (*App) GetUpdateTime ¶
func (*App) ProtoMessage ¶
func (*App) ProtoMessage()
func (*App) ProtoReflect ¶
func (x *App) ProtoReflect() protoreflect.Message
type AppServiceClient ¶
type AppServiceClient interface { Create(ctx context.Context, in *App, opts ...grpc.CallOption) (*common.Response, error) Delete(ctx context.Context, in *App, opts ...grpc.CallOption) (*common.Response, error) DeleteById(ctx context.Context, in *App, opts ...grpc.CallOption) (*common.Response, error) Update(ctx context.Context, in *App, opts ...grpc.CallOption) (*common.Response, error) Find(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.Response, error) Lists(ctx context.Context, in *common.Request, opts ...grpc.CallOption) (*common.Responses, error) }
AppServiceClient is the client API for AppService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAppServiceClient ¶
func NewAppServiceClient(cc grpc.ClientConnInterface) AppServiceClient
type AppServiceServer ¶
type AppServiceServer interface { Create(context.Context, *App) (*common.Response, error) Delete(context.Context, *App) (*common.Response, error) DeleteById(context.Context, *App) (*common.Response, error) Update(context.Context, *App) (*common.Response, error) Find(context.Context, *emptypb.Empty) (*common.Response, error) Lists(context.Context, *common.Request) (*common.Responses, error) }
AppServiceServer is the server API for AppService service.
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type SvcSericeClient ¶
type SvcSericeClient interface {
Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}
SvcSericeClient is the client API for SvcSerice service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSvcSericeClient ¶
func NewSvcSericeClient(cc grpc.ClientConnInterface) SvcSericeClient
type SvcSericeServer ¶
SvcSericeServer is the server API for SvcSerice service.
type UnimplementedAppServiceServer ¶
type UnimplementedAppServiceServer struct { }
UnimplementedAppServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAppServiceServer) DeleteById ¶
type UnimplementedSvcSericeServer ¶
type UnimplementedSvcSericeServer struct { }
UnimplementedSvcSericeServer can be embedded to have forward compatible implementations.