Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTimeLineServiceServer(s grpc.ServiceRegistrar, srv TimeLineServiceServer)
- type Episode
- func (*Episode) Descriptor() ([]byte, []int)deprecated
- func (x *Episode) GetId() uint32
- func (x *Episode) GetName() string
- func (x *Episode) GetNameCn() string
- func (x *Episode) GetSort() float64
- func (x *Episode) GetType() uint32
- func (*Episode) ProtoMessage()
- func (x *Episode) ProtoReflect() protoreflect.Message
- func (x *Episode) Reset()
- func (x *Episode) String() string
- type EpisodeCollectRequest
- func (*EpisodeCollectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EpisodeCollectRequest) GetLast() *Episode
- func (x *EpisodeCollectRequest) GetSubject() *Subject
- func (x *EpisodeCollectRequest) GetUserId() uint64
- func (*EpisodeCollectRequest) ProtoMessage()
- func (x *EpisodeCollectRequest) ProtoReflect() protoreflect.Message
- func (x *EpisodeCollectRequest) Reset()
- func (x *EpisodeCollectRequest) String() string
- type EpisodeCollectResponse
- func (*EpisodeCollectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EpisodeCollectResponse) GetOk() bool
- func (*EpisodeCollectResponse) ProtoMessage()
- func (x *EpisodeCollectResponse) ProtoReflect() protoreflect.Message
- func (x *EpisodeCollectResponse) Reset()
- func (x *EpisodeCollectResponse) String() string
- type HelloRequest
- type HelloResponse
- type Subject
- func (*Subject) Descriptor() ([]byte, []int)deprecated
- func (x *Subject) GetEpsTotal() uint32
- func (x *Subject) GetId() uint32
- func (x *Subject) GetImage() string
- func (x *Subject) GetName() string
- func (x *Subject) GetNameCn() string
- func (x *Subject) GetSeries() bool
- func (x *Subject) GetType() uint32
- func (x *Subject) GetVolsTotal() uint32
- func (*Subject) ProtoMessage()
- func (x *Subject) ProtoReflect() protoreflect.Message
- func (x *Subject) Reset()
- func (x *Subject) String() string
- type SubjectCollectRequest
- func (*SubjectCollectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubjectCollectRequest) GetCollection() uint32
- func (x *SubjectCollectRequest) GetComment() string
- func (x *SubjectCollectRequest) GetRate() uint32
- func (x *SubjectCollectRequest) GetSubject() *Subject
- func (x *SubjectCollectRequest) GetUserId() uint64
- func (*SubjectCollectRequest) ProtoMessage()
- func (x *SubjectCollectRequest) ProtoReflect() protoreflect.Message
- func (x *SubjectCollectRequest) Reset()
- func (x *SubjectCollectRequest) String() string
- type SubjectCollectResponse
- func (*SubjectCollectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubjectCollectResponse) GetOk() bool
- func (*SubjectCollectResponse) ProtoMessage()
- func (x *SubjectCollectResponse) ProtoReflect() protoreflect.Message
- func (x *SubjectCollectResponse) Reset()
- func (x *SubjectCollectResponse) String() string
- type SubjectProgressRequest
- func (*SubjectProgressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubjectProgressRequest) GetEpsUpdate() uint32
- func (x *SubjectProgressRequest) GetSubject() *Subject
- func (x *SubjectProgressRequest) GetUserId() uint64
- func (x *SubjectProgressRequest) GetVolsUpdate() uint32
- func (*SubjectProgressRequest) ProtoMessage()
- func (x *SubjectProgressRequest) ProtoReflect() protoreflect.Message
- func (x *SubjectProgressRequest) Reset()
- func (x *SubjectProgressRequest) String() string
- type SubjectProgressResponse
- func (*SubjectProgressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubjectProgressResponse) GetOk() bool
- func (*SubjectProgressResponse) ProtoMessage()
- func (x *SubjectProgressResponse) ProtoReflect() protoreflect.Message
- func (x *SubjectProgressResponse) Reset()
- func (x *SubjectProgressResponse) String() string
- type TimeLineServiceClient
- type TimeLineServiceServer
- type UnimplementedTimeLineServiceServer
- func (UnimplementedTimeLineServiceServer) EpisodeCollect(context.Context, *EpisodeCollectRequest) (*EpisodeCollectResponse, error)
- func (UnimplementedTimeLineServiceServer) Hello(context.Context, *HelloRequest) (*HelloResponse, error)
- func (UnimplementedTimeLineServiceServer) SubjectCollect(context.Context, *SubjectCollectRequest) (*SubjectCollectResponse, error)
- func (UnimplementedTimeLineServiceServer) SubjectProgress(context.Context, *SubjectProgressRequest) (*SubjectProgressResponse, error)
- type UnsafeTimeLineServiceServer
Constants ¶
const ( TimeLineService_Hello_FullMethodName = "/api.v1.TimeLineService/Hello" TimeLineService_SubjectCollect_FullMethodName = "/api.v1.TimeLineService/SubjectCollect" TimeLineService_SubjectProgress_FullMethodName = "/api.v1.TimeLineService/SubjectProgress" TimeLineService_EpisodeCollect_FullMethodName = "/api.v1.TimeLineService/EpisodeCollect" )
Variables ¶
var File_api_v1_timeline_proto protoreflect.FileDescriptor
var TimeLineService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1.TimeLineService", HandlerType: (*TimeLineServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Hello", Handler: _TimeLineService_Hello_Handler, }, { MethodName: "SubjectCollect", Handler: _TimeLineService_SubjectCollect_Handler, }, { MethodName: "SubjectProgress", Handler: _TimeLineService_SubjectProgress_Handler, }, { MethodName: "EpisodeCollect", Handler: _TimeLineService_EpisodeCollect_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/timeline.proto", }
TimeLineService_ServiceDesc is the grpc.ServiceDesc for TimeLineService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTimeLineServiceServer ¶
func RegisterTimeLineServiceServer(s grpc.ServiceRegistrar, srv TimeLineServiceServer)
Types ¶
type Episode ¶
type Episode struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` NameCn string `protobuf:"bytes,4,opt,name=name_cn,json=nameCn,proto3" json:"name_cn,omitempty"` Sort float64 `protobuf:"fixed64,5,opt,name=sort,proto3" json:"sort,omitempty"` // contains filtered or unexported fields }
func (*Episode) Descriptor
deprecated
func (*Episode) ProtoMessage ¶
func (*Episode) ProtoMessage()
func (*Episode) ProtoReflect ¶
func (x *Episode) ProtoReflect() protoreflect.Message
type EpisodeCollectRequest ¶
type EpisodeCollectRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Last *Episode `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"` Subject *Subject `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
标记剧集为看过
func (*EpisodeCollectRequest) Descriptor
deprecated
func (*EpisodeCollectRequest) Descriptor() ([]byte, []int)
Deprecated: Use EpisodeCollectRequest.ProtoReflect.Descriptor instead.
func (*EpisodeCollectRequest) GetLast ¶
func (x *EpisodeCollectRequest) GetLast() *Episode
func (*EpisodeCollectRequest) GetSubject ¶
func (x *EpisodeCollectRequest) GetSubject() *Subject
func (*EpisodeCollectRequest) GetUserId ¶
func (x *EpisodeCollectRequest) GetUserId() uint64
func (*EpisodeCollectRequest) ProtoMessage ¶
func (*EpisodeCollectRequest) ProtoMessage()
func (*EpisodeCollectRequest) ProtoReflect ¶
func (x *EpisodeCollectRequest) ProtoReflect() protoreflect.Message
func (*EpisodeCollectRequest) Reset ¶
func (x *EpisodeCollectRequest) Reset()
func (*EpisodeCollectRequest) String ¶
func (x *EpisodeCollectRequest) String() string
type EpisodeCollectResponse ¶
type EpisodeCollectResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*EpisodeCollectResponse) Descriptor
deprecated
func (*EpisodeCollectResponse) Descriptor() ([]byte, []int)
Deprecated: Use EpisodeCollectResponse.ProtoReflect.Descriptor instead.
func (*EpisodeCollectResponse) GetOk ¶
func (x *EpisodeCollectResponse) GetOk() bool
func (*EpisodeCollectResponse) ProtoMessage ¶
func (*EpisodeCollectResponse) ProtoMessage()
func (*EpisodeCollectResponse) ProtoReflect ¶
func (x *EpisodeCollectResponse) ProtoReflect() protoreflect.Message
func (*EpisodeCollectResponse) Reset ¶
func (x *EpisodeCollectResponse) Reset()
func (*EpisodeCollectResponse) String ¶
func (x *EpisodeCollectResponse) String() string
type HelloRequest ¶
type HelloRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetName ¶
func (x *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
type HelloResponse ¶
type HelloResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*HelloResponse) Descriptor
deprecated
func (*HelloResponse) Descriptor() ([]byte, []int)
Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
func (*HelloResponse) GetMessage ¶
func (x *HelloResponse) GetMessage() string
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) ProtoReflect ¶
func (x *HelloResponse) ProtoReflect() protoreflect.Message
func (*HelloResponse) Reset ¶
func (x *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (x *HelloResponse) String() string
type Subject ¶
type Subject struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` NameCn string `protobuf:"bytes,4,opt,name=name_cn,json=nameCn,proto3" json:"name_cn,omitempty"` Image string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"` Series bool `protobuf:"varint,6,opt,name=series,proto3" json:"series,omitempty"` VolsTotal uint32 `protobuf:"varint,7,opt,name=vols_total,json=volsTotal,proto3" json:"vols_total,omitempty"` EpsTotal uint32 `protobuf:"varint,8,opt,name=eps_total,json=epsTotal,proto3" json:"eps_total,omitempty"` // contains filtered or unexported fields }
func (*Subject) Descriptor
deprecated
func (*Subject) GetEpsTotal ¶
func (*Subject) GetVolsTotal ¶
func (*Subject) ProtoMessage ¶
func (*Subject) ProtoMessage()
func (*Subject) ProtoReflect ¶
func (x *Subject) ProtoReflect() protoreflect.Message
type SubjectCollectRequest ¶
type SubjectCollectRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Subject *Subject `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` Collection uint32 `protobuf:"varint,3,opt,name=collection,proto3" json:"collection,omitempty"` Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` Rate uint32 `protobuf:"varint,5,opt,name=rate,proto3" json:"rate,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*SubjectCollectRequest) Descriptor
deprecated
func (*SubjectCollectRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubjectCollectRequest.ProtoReflect.Descriptor instead.
func (*SubjectCollectRequest) GetCollection ¶
func (x *SubjectCollectRequest) GetCollection() uint32
func (*SubjectCollectRequest) GetComment ¶
func (x *SubjectCollectRequest) GetComment() string
func (*SubjectCollectRequest) GetRate ¶
func (x *SubjectCollectRequest) GetRate() uint32
func (*SubjectCollectRequest) GetSubject ¶
func (x *SubjectCollectRequest) GetSubject() *Subject
func (*SubjectCollectRequest) GetUserId ¶
func (x *SubjectCollectRequest) GetUserId() uint64
func (*SubjectCollectRequest) ProtoMessage ¶
func (*SubjectCollectRequest) ProtoMessage()
func (*SubjectCollectRequest) ProtoReflect ¶
func (x *SubjectCollectRequest) ProtoReflect() protoreflect.Message
func (*SubjectCollectRequest) Reset ¶
func (x *SubjectCollectRequest) Reset()
func (*SubjectCollectRequest) String ¶
func (x *SubjectCollectRequest) String() string
type SubjectCollectResponse ¶
type SubjectCollectResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*SubjectCollectResponse) Descriptor
deprecated
func (*SubjectCollectResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubjectCollectResponse.ProtoReflect.Descriptor instead.
func (*SubjectCollectResponse) GetOk ¶
func (x *SubjectCollectResponse) GetOk() bool
func (*SubjectCollectResponse) ProtoMessage ¶
func (*SubjectCollectResponse) ProtoMessage()
func (*SubjectCollectResponse) ProtoReflect ¶
func (x *SubjectCollectResponse) ProtoReflect() protoreflect.Message
func (*SubjectCollectResponse) Reset ¶
func (x *SubjectCollectResponse) Reset()
func (*SubjectCollectResponse) String ¶
func (x *SubjectCollectResponse) String() string
type SubjectProgressRequest ¶
type SubjectProgressRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Subject *Subject `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` EpsUpdate uint32 `protobuf:"varint,3,opt,name=eps_update,json=epsUpdate,proto3" json:"eps_update,omitempty"` VolsUpdate uint32 `protobuf:"varint,4,opt,name=vols_update,json=volsUpdate,proto3" json:"vols_update,omitempty"` // contains filtered or unexported fields }
func (*SubjectProgressRequest) Descriptor
deprecated
func (*SubjectProgressRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubjectProgressRequest.ProtoReflect.Descriptor instead.
func (*SubjectProgressRequest) GetEpsUpdate ¶
func (x *SubjectProgressRequest) GetEpsUpdate() uint32
func (*SubjectProgressRequest) GetSubject ¶
func (x *SubjectProgressRequest) GetSubject() *Subject
func (*SubjectProgressRequest) GetUserId ¶
func (x *SubjectProgressRequest) GetUserId() uint64
func (*SubjectProgressRequest) GetVolsUpdate ¶
func (x *SubjectProgressRequest) GetVolsUpdate() uint32
func (*SubjectProgressRequest) ProtoMessage ¶
func (*SubjectProgressRequest) ProtoMessage()
func (*SubjectProgressRequest) ProtoReflect ¶
func (x *SubjectProgressRequest) ProtoReflect() protoreflect.Message
func (*SubjectProgressRequest) Reset ¶
func (x *SubjectProgressRequest) Reset()
func (*SubjectProgressRequest) String ¶
func (x *SubjectProgressRequest) String() string
type SubjectProgressResponse ¶
type SubjectProgressResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*SubjectProgressResponse) Descriptor
deprecated
func (*SubjectProgressResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubjectProgressResponse.ProtoReflect.Descriptor instead.
func (*SubjectProgressResponse) GetOk ¶
func (x *SubjectProgressResponse) GetOk() bool
func (*SubjectProgressResponse) ProtoMessage ¶
func (*SubjectProgressResponse) ProtoMessage()
func (*SubjectProgressResponse) ProtoReflect ¶
func (x *SubjectProgressResponse) ProtoReflect() protoreflect.Message
func (*SubjectProgressResponse) Reset ¶
func (x *SubjectProgressResponse) Reset()
func (*SubjectProgressResponse) String ¶
func (x *SubjectProgressResponse) String() string
type TimeLineServiceClient ¶
type TimeLineServiceClient interface { // Debug function Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error) SubjectCollect(ctx context.Context, in *SubjectCollectRequest, opts ...grpc.CallOption) (*SubjectCollectResponse, error) SubjectProgress(ctx context.Context, in *SubjectProgressRequest, opts ...grpc.CallOption) (*SubjectProgressResponse, error) EpisodeCollect(ctx context.Context, in *EpisodeCollectRequest, opts ...grpc.CallOption) (*EpisodeCollectResponse, error) }
TimeLineServiceClient is the client API for TimeLineService 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.
func NewTimeLineServiceClient ¶
func NewTimeLineServiceClient(cc grpc.ClientConnInterface) TimeLineServiceClient
type TimeLineServiceServer ¶
type TimeLineServiceServer interface { // Debug function Hello(context.Context, *HelloRequest) (*HelloResponse, error) SubjectCollect(context.Context, *SubjectCollectRequest) (*SubjectCollectResponse, error) SubjectProgress(context.Context, *SubjectProgressRequest) (*SubjectProgressResponse, error) EpisodeCollect(context.Context, *EpisodeCollectRequest) (*EpisodeCollectResponse, error) // contains filtered or unexported methods }
TimeLineServiceServer is the server API for TimeLineService service. All implementations must embed UnimplementedTimeLineServiceServer for forward compatibility
type UnimplementedTimeLineServiceServer ¶
type UnimplementedTimeLineServiceServer struct { }
UnimplementedTimeLineServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTimeLineServiceServer) EpisodeCollect ¶
func (UnimplementedTimeLineServiceServer) EpisodeCollect(context.Context, *EpisodeCollectRequest) (*EpisodeCollectResponse, error)
func (UnimplementedTimeLineServiceServer) Hello ¶
func (UnimplementedTimeLineServiceServer) Hello(context.Context, *HelloRequest) (*HelloResponse, error)
func (UnimplementedTimeLineServiceServer) SubjectCollect ¶
func (UnimplementedTimeLineServiceServer) SubjectCollect(context.Context, *SubjectCollectRequest) (*SubjectCollectResponse, error)
func (UnimplementedTimeLineServiceServer) SubjectProgress ¶
func (UnimplementedTimeLineServiceServer) SubjectProgress(context.Context, *SubjectProgressRequest) (*SubjectProgressResponse, error)
type UnsafeTimeLineServiceServer ¶
type UnsafeTimeLineServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTimeLineServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TimeLineServiceServer will result in compilation errors.