Documentation ¶
Index ¶
- Variables
- func RegisterBookServer(s grpc.ServiceRegistrar, srv BookServer)
- func RegisterGoalServer(s grpc.ServiceRegistrar, srv GoalServer)
- func RegisterMatchServer(s grpc.ServiceRegistrar, srv MatchServer)
- func RegisterReadEventServer(s grpc.ServiceRegistrar, srv ReadEventServer)
- type BookClient
- type BookInfo
- func (*BookInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BookInfo) GetAuthors() []string
- func (x *BookInfo) GetBookId() uint64
- func (x *BookInfo) GetBookThumbnail() string
- func (x *BookInfo) GetBookmarkId() uint64
- func (x *BookInfo) GetCategories() []string
- func (x *BookInfo) GetIsbn() string
- func (x *BookInfo) GetName() string
- func (x *BookInfo) GetPages() int64
- func (x *BookInfo) GetPrice() int64
- func (x *BookInfo) GetReadStatus() ReadStatus
- func (x *BookInfo) GetUserId() uint64
- func (*BookInfo) ProtoMessage()
- func (x *BookInfo) ProtoReflect() protoreflect.Message
- func (x *BookInfo) Reset()
- func (x *BookInfo) String() string
- type BookServer
- type BookmarkStatus
- func (BookmarkStatus) Descriptor() protoreflect.EnumDescriptor
- func (x BookmarkStatus) Enum() *BookmarkStatus
- func (BookmarkStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x BookmarkStatus) Number() protoreflect.EnumNumber
- func (x BookmarkStatus) String() string
- func (BookmarkStatus) Type() protoreflect.EnumType
- type CreateGoalRequest
- func (*CreateGoalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGoalRequest) GetNumPages() int64
- func (x *CreateGoalRequest) GetTime() *timestamppb.Timestamp
- func (x *CreateGoalRequest) GetUserId() uint64
- func (*CreateGoalRequest) ProtoMessage()
- func (x *CreateGoalRequest) ProtoReflect() protoreflect.Message
- func (x *CreateGoalRequest) Reset()
- func (x *CreateGoalRequest) String() string
- type CreateGoalResponse
- func (*CreateGoalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGoalResponse) GetGoalInfo() *GoalInfo
- func (x *CreateGoalResponse) GetTime() *timestamppb.Timestamp
- func (*CreateGoalResponse) ProtoMessage()
- func (x *CreateGoalResponse) ProtoReflect() protoreflect.Message
- func (x *CreateGoalResponse) Reset()
- func (x *CreateGoalResponse) String() string
- type CreateReadEventRequest
- func (*CreateReadEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReadEventRequest) GetBookmarkId() uint64
- func (x *CreateReadEventRequest) GetReadEventInfo() *ReadEventInfo
- func (*CreateReadEventRequest) ProtoMessage()
- func (x *CreateReadEventRequest) ProtoReflect() protoreflect.Message
- func (x *CreateReadEventRequest) Reset()
- func (x *CreateReadEventRequest) String() string
- type CreateReadEventResponse
- func (*CreateReadEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReadEventResponse) GetReadEventId() uint64
- func (x *CreateReadEventResponse) GetTime() *timestamppb.Timestamp
- func (*CreateReadEventResponse) ProtoMessage()
- func (x *CreateReadEventResponse) ProtoReflect() protoreflect.Message
- func (x *CreateReadEventResponse) Reset()
- func (x *CreateReadEventResponse) String() string
- type GetBookmarkStatusRequest
- func (*GetBookmarkStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookmarkStatusRequest) GetBookmarkId() uint64
- func (*GetBookmarkStatusRequest) ProtoMessage()
- func (x *GetBookmarkStatusRequest) ProtoReflect() protoreflect.Message
- func (x *GetBookmarkStatusRequest) Reset()
- func (x *GetBookmarkStatusRequest) String() string
- type GetBookmarkStatusResponse
- func (*GetBookmarkStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookmarkStatusResponse) GetBookmarkStatus() BookmarkStatus
- func (x *GetBookmarkStatusResponse) GetTime() *timestamppb.Timestamp
- func (*GetBookmarkStatusResponse) ProtoMessage()
- func (x *GetBookmarkStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetBookmarkStatusResponse) Reset()
- func (x *GetBookmarkStatusResponse) String() string
- type GetBooksRequest
- type GetBooksResponse
- func (*GetBooksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBooksResponse) GetBooksInfo() []*BookInfo
- func (x *GetBooksResponse) GetTime() *timestamppb.Timestamp
- func (*GetBooksResponse) ProtoMessage()
- func (x *GetBooksResponse) ProtoReflect() protoreflect.Message
- func (x *GetBooksResponse) Reset()
- func (x *GetBooksResponse) String() string
- type GetGoalsRequest
- type GetGoalsResponse
- func (*GetGoalsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetGoalsResponse) GetGoalsInfo() []*GoalInfo
- func (x *GetGoalsResponse) GetTime() *timestamppb.Timestamp
- func (*GetGoalsResponse) ProtoMessage()
- func (x *GetGoalsResponse) ProtoReflect() protoreflect.Message
- func (x *GetGoalsResponse) Reset()
- func (x *GetGoalsResponse) String() string
- type GetOpponentsRequest
- func (*GetOpponentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOpponentsRequest) GetUserId() uint64
- func (*GetOpponentsRequest) ProtoMessage()
- func (x *GetOpponentsRequest) ProtoReflect() protoreflect.Message
- func (x *GetOpponentsRequest) Reset()
- func (x *GetOpponentsRequest) String() string
- type GetOpponentsResponse
- func (*GetOpponentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOpponentsResponse) GetOpponents() []*OpponentsInfo
- func (x *GetOpponentsResponse) GetTime() *timestamppb.Timestamp
- func (*GetOpponentsResponse) ProtoMessage()
- func (x *GetOpponentsResponse) ProtoReflect() protoreflect.Message
- func (x *GetOpponentsResponse) Reset()
- func (x *GetOpponentsResponse) String() string
- type GetRankingRequest
- type GetRankingResponse
- func (*GetRankingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRankingResponse) GetRankingInfos() []*RankingInfo
- func (x *GetRankingResponse) GetTime() *timestamppb.Timestamp
- func (*GetRankingResponse) ProtoMessage()
- func (x *GetRankingResponse) ProtoReflect() protoreflect.Message
- func (x *GetRankingResponse) Reset()
- func (x *GetRankingResponse) String() string
- type GetReadEventsByBookIDRequest
- func (*GetReadEventsByBookIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReadEventsByBookIDRequest) GetBookId() uint64
- func (*GetReadEventsByBookIDRequest) ProtoMessage()
- func (x *GetReadEventsByBookIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetReadEventsByBookIDRequest) Reset()
- func (x *GetReadEventsByBookIDRequest) String() string
- type GetReadEventsResponse
- func (*GetReadEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReadEventsResponse) GetReadEventsInfo() []*ReadEventInfo
- func (x *GetReadEventsResponse) GetTime() *timestamppb.Timestamp
- func (*GetReadEventsResponse) ProtoMessage()
- func (x *GetReadEventsResponse) ProtoReflect() protoreflect.Message
- func (x *GetReadEventsResponse) Reset()
- func (x *GetReadEventsResponse) String() string
- type GetReadPagesByBookIDRequest
- func (*GetReadPagesByBookIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReadPagesByBookIDRequest) GetBookId() uint64
- func (x *GetReadPagesByBookIDRequest) GetUserId() uint64
- func (*GetReadPagesByBookIDRequest) ProtoMessage()
- func (x *GetReadPagesByBookIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetReadPagesByBookIDRequest) Reset()
- func (x *GetReadPagesByBookIDRequest) String() string
- type GetReadPagesRequest
- func (*GetReadPagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReadPagesRequest) GetUserId() uint64
- func (*GetReadPagesRequest) ProtoMessage()
- func (x *GetReadPagesRequest) ProtoReflect() protoreflect.Message
- func (x *GetReadPagesRequest) Reset()
- func (x *GetReadPagesRequest) String() string
- type GetReadPagesResponse
- func (*GetReadPagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReadPagesResponse) GetReadPages() uint64
- func (x *GetReadPagesResponse) GetTime() *timestamppb.Timestamp
- func (*GetReadPagesResponse) ProtoMessage()
- func (x *GetReadPagesResponse) ProtoReflect() protoreflect.Message
- func (x *GetReadPagesResponse) Reset()
- func (x *GetReadPagesResponse) String() string
- type GetReadPagesWithDurationRequest
- func (*GetReadPagesWithDurationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReadPagesWithDurationRequest) GetEndTime() *timestamppb.Timestamp
- func (x *GetReadPagesWithDurationRequest) GetStartTime() *timestamppb.Timestamp
- func (x *GetReadPagesWithDurationRequest) GetUserId() uint64
- func (*GetReadPagesWithDurationRequest) ProtoMessage()
- func (x *GetReadPagesWithDurationRequest) ProtoReflect() protoreflect.Message
- func (x *GetReadPagesWithDurationRequest) Reset()
- func (x *GetReadPagesWithDurationRequest) String() string
- type GetReadRatioRequest
- func (*GetReadRatioRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReadRatioRequest) GetUserId() uint64
- func (*GetReadRatioRequest) ProtoMessage()
- func (x *GetReadRatioRequest) ProtoReflect() protoreflect.Message
- func (x *GetReadRatioRequest) Reset()
- func (x *GetReadRatioRequest) String() string
- type GetReadRatioResponse
- func (*GetReadRatioResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReadRatioResponse) GetReadPercentage() float64
- func (x *GetReadRatioResponse) GetTime() *timestamppb.Timestamp
- func (*GetReadRatioResponse) ProtoMessage()
- func (x *GetReadRatioResponse) ProtoReflect() protoreflect.Message
- func (x *GetReadRatioResponse) Reset()
- func (x *GetReadRatioResponse) String() string
- type GetReadSecondsRequest
- func (*GetReadSecondsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReadSecondsRequest) GetUserId() uint64
- func (*GetReadSecondsRequest) ProtoMessage()
- func (x *GetReadSecondsRequest) ProtoReflect() protoreflect.Message
- func (x *GetReadSecondsRequest) Reset()
- func (x *GetReadSecondsRequest) String() string
- type GetReadSecondsResponse
- func (*GetReadSecondsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReadSecondsResponse) GetReadSeconds() uint64
- func (x *GetReadSecondsResponse) GetTime() *timestamppb.Timestamp
- func (*GetReadSecondsResponse) ProtoMessage()
- func (x *GetReadSecondsResponse) ProtoReflect() protoreflect.Message
- func (x *GetReadSecondsResponse) Reset()
- func (x *GetReadSecondsResponse) String() string
- type GetReadSecondsWithDurationRequest
- func (*GetReadSecondsWithDurationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReadSecondsWithDurationRequest) GetEndTime() *timestamppb.Timestamp
- func (x *GetReadSecondsWithDurationRequest) GetStartTime() *timestamppb.Timestamp
- func (x *GetReadSecondsWithDurationRequest) GetUserId() uint64
- func (*GetReadSecondsWithDurationRequest) ProtoMessage()
- func (x *GetReadSecondsWithDurationRequest) ProtoReflect() protoreflect.Message
- func (x *GetReadSecondsWithDurationRequest) Reset()
- func (x *GetReadSecondsWithDurationRequest) String() string
- type GetUserRequest
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResponse) GetTime() *timestamppb.Timestamp
- func (x *GetUserResponse) GetUsersInfo() []*UserInfo
- func (*GetUserResponse) ProtoMessage()
- func (x *GetUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResponse) Reset()
- func (x *GetUserResponse) String() string
- type GoalClient
- type GoalInfo
- func (*GoalInfo) Descriptor() ([]byte, []int)deprecated
- func (x *GoalInfo) GetEndDate() *timestamppb.Timestamp
- func (x *GoalInfo) GetGoalId() uint64
- func (x *GoalInfo) GetGoalStatus() GoalStatus
- func (x *GoalInfo) GetNumPages() int64
- func (x *GoalInfo) GetStartDate() *timestamppb.Timestamp
- func (x *GoalInfo) GetUserId() uint64
- func (*GoalInfo) ProtoMessage()
- func (x *GoalInfo) ProtoReflect() protoreflect.Message
- func (x *GoalInfo) Reset()
- func (x *GoalInfo) String() string
- type GoalServer
- type GoalStatus
- type MatchClient
- type MatchServer
- type OpponentsInfo
- func (*OpponentsInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OpponentsInfo) GetId() uint64
- func (x *OpponentsInfo) GetName() string
- func (x *OpponentsInfo) GetReadPages() uint64
- func (*OpponentsInfo) ProtoMessage()
- func (x *OpponentsInfo) ProtoReflect() protoreflect.Message
- func (x *OpponentsInfo) Reset()
- func (x *OpponentsInfo) String() string
- type RankingInfo
- func (*RankingInfo) Descriptor() ([]byte, []int)deprecated
- func (x *RankingInfo) GetId() uint64
- func (x *RankingInfo) GetName() string
- func (x *RankingInfo) GetRanking() uint64
- func (x *RankingInfo) GetReadPages() int64
- func (*RankingInfo) ProtoMessage()
- func (x *RankingInfo) ProtoReflect() protoreflect.Message
- func (x *RankingInfo) Reset()
- func (x *RankingInfo) String() string
- type ReadEventClient
- type ReadEventInfo
- func (*ReadEventInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ReadEventInfo) GetReadEndTime() *timestamppb.Timestamp
- func (x *ReadEventInfo) GetReadEndWidthLevel() int64
- func (x *ReadEventInfo) GetReadStartTime() *timestamppb.Timestamp
- func (x *ReadEventInfo) GetReadStartWidthRevel() int64
- func (*ReadEventInfo) ProtoMessage()
- func (x *ReadEventInfo) ProtoReflect() protoreflect.Message
- func (x *ReadEventInfo) Reset()
- func (x *ReadEventInfo) String() string
- type ReadEventServer
- type ReadStatus
- type RegisterBookRequest
- func (*RegisterBookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterBookRequest) GetIsbn() string
- func (x *RegisterBookRequest) GetUserId() uint64
- func (*RegisterBookRequest) ProtoMessage()
- func (x *RegisterBookRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterBookRequest) Reset()
- func (x *RegisterBookRequest) String() string
- type RegisterBookResponse
- func (*RegisterBookResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterBookResponse) GetBookInfo() *BookInfo
- func (x *RegisterBookResponse) GetTime() *timestamppb.Timestamp
- func (*RegisterBookResponse) ProtoMessage()
- func (x *RegisterBookResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterBookResponse) Reset()
- func (x *RegisterBookResponse) String() string
- type RegisterOpponentsRequest
- func (*RegisterOpponentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterOpponentsRequest) GetOpponentIds() []uint64
- func (x *RegisterOpponentsRequest) GetUserId() uint64
- func (*RegisterOpponentsRequest) ProtoMessage()
- func (x *RegisterOpponentsRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterOpponentsRequest) Reset()
- func (x *RegisterOpponentsRequest) String() string
- type RegisterOpponentsResponse
- func (*RegisterOpponentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterOpponentsResponse) GetTime() *timestamppb.Timestamp
- func (*RegisterOpponentsResponse) ProtoMessage()
- func (x *RegisterOpponentsResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterOpponentsResponse) Reset()
- func (x *RegisterOpponentsResponse) String() string
- type UnimplementedBookServer
- func (UnimplementedBookServer) GetBookmarkStatus(context.Context, *GetBookmarkStatusRequest) (*GetBookmarkStatusResponse, error)
- func (UnimplementedBookServer) GetBooks(context.Context, *GetBooksRequest) (*GetBooksResponse, error)
- func (UnimplementedBookServer) GetReadPages(context.Context, *GetReadPagesRequest) (*GetReadPagesResponse, error)
- func (UnimplementedBookServer) GetReadPagesByBookID(context.Context, *GetReadPagesByBookIDRequest) (*GetReadPagesResponse, error)
- func (UnimplementedBookServer) GetReadPagesWithDuration(context.Context, *GetReadPagesWithDurationRequest) (*GetReadPagesResponse, error)
- func (UnimplementedBookServer) GetReadRatio(context.Context, *GetReadRatioRequest) (*GetReadRatioResponse, error)
- func (UnimplementedBookServer) GetReadSeconds(context.Context, *GetReadSecondsRequest) (*GetReadSecondsResponse, error)
- func (UnimplementedBookServer) GetReadSecondsWithDuration(context.Context, *GetReadSecondsWithDurationRequest) (*GetReadSecondsResponse, error)
- func (UnimplementedBookServer) RegisterBook(context.Context, *RegisterBookRequest) (*RegisterBookResponse, error)
- func (UnimplementedBookServer) UpdateBookmarkID(context.Context, *UpdateBookmarkIDRequest) (*UpdateBookResponse, error)
- func (UnimplementedBookServer) UpdateReadStatus(context.Context, *UpdateReadStatusRequest) (*UpdateBookResponse, error)
- type UnimplementedGoalServer
- type UnimplementedMatchServer
- func (UnimplementedMatchServer) GetOpponents(context.Context, *GetOpponentsRequest) (*GetOpponentsResponse, error)
- func (UnimplementedMatchServer) GetRanking(context.Context, *GetRankingRequest) (*GetRankingResponse, error)
- func (UnimplementedMatchServer) GetUsers(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedMatchServer) RegisterOpponents(context.Context, *RegisterOpponentsRequest) (*RegisterOpponentsResponse, error)
- type UnimplementedReadEventServer
- type UnsafeBookServer
- type UnsafeGoalServer
- type UnsafeMatchServer
- type UnsafeReadEventServer
- type UpdateBookResponse
- func (*UpdateBookResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBookResponse) GetBookInfo() *BookInfo
- func (x *UpdateBookResponse) GetTime() *timestamppb.Timestamp
- func (*UpdateBookResponse) ProtoMessage()
- func (x *UpdateBookResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateBookResponse) Reset()
- func (x *UpdateBookResponse) String() string
- type UpdateBookmarkIDRequest
- func (*UpdateBookmarkIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBookmarkIDRequest) GetBookId() uint64
- func (x *UpdateBookmarkIDRequest) GetBookWidth() uint64
- func (x *UpdateBookmarkIDRequest) GetBookmarkId() uint64
- func (*UpdateBookmarkIDRequest) ProtoMessage()
- func (x *UpdateBookmarkIDRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBookmarkIDRequest) Reset()
- func (x *UpdateBookmarkIDRequest) String() string
- type UpdateReadStatusRequest
- func (*UpdateReadStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateReadStatusRequest) GetBookId() uint64
- func (x *UpdateReadStatusRequest) GetReadStatus() ReadStatus
- func (*UpdateReadStatusRequest) ProtoMessage()
- func (x *UpdateReadStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateReadStatusRequest) Reset()
- func (x *UpdateReadStatusRequest) String() string
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
var ( ReadStatus_name = map[int32]string{ 0: "READ_UNSPECIFIED", 1: "READ_UNREAD", 2: "READ_READING", 3: "READ_SUSPENDED", 4: "READ_COMPLETE", } ReadStatus_value = map[string]int32{ "READ_UNSPECIFIED": 0, "READ_UNREAD": 1, "READ_READING": 2, "READ_SUSPENDED": 3, "READ_COMPLETE": 4, } )
Enum value maps for ReadStatus.
var ( BookmarkStatus_name = map[int32]string{ 0: "BOOKMARK_STATUS_UNSPECIFIED", 1: "BOOKMARK_STATUS_GREEN", 2: "BOOKMARK_STATUS_RED", } BookmarkStatus_value = map[string]int32{ "BOOKMARK_STATUS_UNSPECIFIED": 0, "BOOKMARK_STATUS_GREEN": 1, "BOOKMARK_STATUS_RED": 2, } )
Enum value maps for BookmarkStatus.
var ( GoalStatus_name = map[int32]string{ 0: "GOAL_UNKNOWN", 1: "GOAL_PENDING", 2: "GOAL_DOING", 3: "GOAL_COMPLETE", 4: "GOAL_FAILED", } GoalStatus_value = map[string]int32{ "GOAL_UNKNOWN": 0, "GOAL_PENDING": 1, "GOAL_DOING": 2, "GOAL_COMPLETE": 3, "GOAL_FAILED": 4, } )
Enum value maps for GoalStatus.
var Book_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bookowl.Book", HandlerType: (*BookServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterBook", Handler: _Book_RegisterBook_Handler, }, { MethodName: "UpdateBookmarkID", Handler: _Book_UpdateBookmarkID_Handler, }, { MethodName: "UpdateReadStatus", Handler: _Book_UpdateReadStatus_Handler, }, { MethodName: "GetBooks", Handler: _Book_GetBooks_Handler, }, { MethodName: "GetReadRatio", Handler: _Book_GetReadRatio_Handler, }, { MethodName: "GetReadPages", Handler: _Book_GetReadPages_Handler, }, { MethodName: "GetReadSeconds", Handler: _Book_GetReadSeconds_Handler, }, { MethodName: "GetReadPagesWithDuration", Handler: _Book_GetReadPagesWithDuration_Handler, }, { MethodName: "GetReadSecondsWithDuration", Handler: _Book_GetReadSecondsWithDuration_Handler, }, { MethodName: "GetReadPagesByBookID", Handler: _Book_GetReadPagesByBookID_Handler, }, { MethodName: "GetBookmarkStatus", Handler: _Book_GetBookmarkStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "book.proto", }
Book_ServiceDesc is the grpc.ServiceDesc for Book service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_book_proto protoreflect.FileDescriptor
var File_goal_proto protoreflect.FileDescriptor
var File_match_proto protoreflect.FileDescriptor
var File_read_event_proto protoreflect.FileDescriptor
var Goal_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bookowl.Goal", HandlerType: (*GoalServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateGoal", Handler: _Goal_CreateGoal_Handler, }, { MethodName: "GetGoals", Handler: _Goal_GetGoals_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "goal.proto", }
Goal_ServiceDesc is the grpc.ServiceDesc for Goal service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Match_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bookowl.Match", HandlerType: (*MatchServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterOpponents", Handler: _Match_RegisterOpponents_Handler, }, { MethodName: "GetOpponents", Handler: _Match_GetOpponents_Handler, }, { MethodName: "GetRanking", Handler: _Match_GetRanking_Handler, }, { MethodName: "GetUsers", Handler: _Match_GetUsers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "match.proto", }
Match_ServiceDesc is the grpc.ServiceDesc for Match service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ReadEvent_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bookowl.ReadEvent", HandlerType: (*ReadEventServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateReadEvent", Handler: _ReadEvent_CreateReadEvent_Handler, }, { MethodName: "GetReadEventsByBookID", Handler: _ReadEvent_GetReadEventsByBookID_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "read_event.proto", }
ReadEvent_ServiceDesc is the grpc.ServiceDesc for ReadEvent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterBookServer ¶
func RegisterBookServer(s grpc.ServiceRegistrar, srv BookServer)
func RegisterGoalServer ¶
func RegisterGoalServer(s grpc.ServiceRegistrar, srv GoalServer)
func RegisterMatchServer ¶
func RegisterMatchServer(s grpc.ServiceRegistrar, srv MatchServer)
func RegisterReadEventServer ¶
func RegisterReadEventServer(s grpc.ServiceRegistrar, srv ReadEventServer)
Types ¶
type BookClient ¶
type BookClient interface { RegisterBook(ctx context.Context, in *RegisterBookRequest, opts ...grpc.CallOption) (*RegisterBookResponse, error) UpdateBookmarkID(ctx context.Context, in *UpdateBookmarkIDRequest, opts ...grpc.CallOption) (*UpdateBookResponse, error) UpdateReadStatus(ctx context.Context, in *UpdateReadStatusRequest, opts ...grpc.CallOption) (*UpdateBookResponse, error) GetBooks(ctx context.Context, in *GetBooksRequest, opts ...grpc.CallOption) (*GetBooksResponse, error) GetReadRatio(ctx context.Context, in *GetReadRatioRequest, opts ...grpc.CallOption) (*GetReadRatioResponse, error) GetReadPages(ctx context.Context, in *GetReadPagesRequest, opts ...grpc.CallOption) (*GetReadPagesResponse, error) GetReadSeconds(ctx context.Context, in *GetReadSecondsRequest, opts ...grpc.CallOption) (*GetReadSecondsResponse, error) GetReadPagesWithDuration(ctx context.Context, in *GetReadPagesWithDurationRequest, opts ...grpc.CallOption) (*GetReadPagesResponse, error) GetReadSecondsWithDuration(ctx context.Context, in *GetReadSecondsWithDurationRequest, opts ...grpc.CallOption) (*GetReadSecondsResponse, error) GetReadPagesByBookID(ctx context.Context, in *GetReadPagesByBookIDRequest, opts ...grpc.CallOption) (*GetReadPagesResponse, error) GetBookmarkStatus(ctx context.Context, in *GetBookmarkStatusRequest, opts ...grpc.CallOption) (*GetBookmarkStatusResponse, error) }
BookClient is the client API for Book 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 NewBookClient ¶
func NewBookClient(cc grpc.ClientConnInterface) BookClient
type BookInfo ¶
type BookInfo struct { BookId uint64 `protobuf:"varint,1,opt,name=book_id,json=bookId,proto3" json:"book_id,omitempty"` Isbn string `protobuf:"bytes,2,opt,name=isbn,proto3" json:"isbn,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Pages int64 `protobuf:"varint,4,opt,name=pages,proto3" json:"pages,omitempty"` // int64 width_level = 5; Price int64 `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"` Authors []string `protobuf:"bytes,7,rep,name=authors,proto3" json:"authors,omitempty"` ReadStatus ReadStatus `protobuf:"varint,8,opt,name=read_status,json=readStatus,proto3,enum=bookowl.ReadStatus" json:"read_status,omitempty"` Categories []string `protobuf:"bytes,9,rep,name=categories,proto3" json:"categories,omitempty"` UserId uint64 `protobuf:"varint,10,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` BookmarkId uint64 `protobuf:"varint,11,opt,name=bookmark_id,json=bookmarkId,proto3" json:"bookmark_id,omitempty"` BookThumbnail string `protobuf:"bytes,12,opt,name=book_thumbnail,json=bookThumbnail,proto3" json:"book_thumbnail,omitempty"` // contains filtered or unexported fields }
func (*BookInfo) Descriptor
deprecated
func (*BookInfo) GetAuthors ¶
func (*BookInfo) GetBookThumbnail ¶
func (*BookInfo) GetBookmarkId ¶
func (*BookInfo) GetCategories ¶
func (*BookInfo) GetReadStatus ¶
func (x *BookInfo) GetReadStatus() ReadStatus
func (*BookInfo) ProtoMessage ¶
func (*BookInfo) ProtoMessage()
func (*BookInfo) ProtoReflect ¶
func (x *BookInfo) ProtoReflect() protoreflect.Message
type BookServer ¶
type BookServer interface { RegisterBook(context.Context, *RegisterBookRequest) (*RegisterBookResponse, error) UpdateBookmarkID(context.Context, *UpdateBookmarkIDRequest) (*UpdateBookResponse, error) UpdateReadStatus(context.Context, *UpdateReadStatusRequest) (*UpdateBookResponse, error) GetBooks(context.Context, *GetBooksRequest) (*GetBooksResponse, error) GetReadRatio(context.Context, *GetReadRatioRequest) (*GetReadRatioResponse, error) GetReadPages(context.Context, *GetReadPagesRequest) (*GetReadPagesResponse, error) GetReadSeconds(context.Context, *GetReadSecondsRequest) (*GetReadSecondsResponse, error) GetReadPagesWithDuration(context.Context, *GetReadPagesWithDurationRequest) (*GetReadPagesResponse, error) GetReadSecondsWithDuration(context.Context, *GetReadSecondsWithDurationRequest) (*GetReadSecondsResponse, error) GetReadPagesByBookID(context.Context, *GetReadPagesByBookIDRequest) (*GetReadPagesResponse, error) GetBookmarkStatus(context.Context, *GetBookmarkStatusRequest) (*GetBookmarkStatusResponse, error) // contains filtered or unexported methods }
BookServer is the server API for Book service. All implementations must embed UnimplementedBookServer for forward compatibility
type BookmarkStatus ¶
type BookmarkStatus int32
const ( BookmarkStatus_BOOKMARK_STATUS_UNSPECIFIED BookmarkStatus = 0 BookmarkStatus_BOOKMARK_STATUS_GREEN BookmarkStatus = 1 BookmarkStatus_BOOKMARK_STATUS_RED BookmarkStatus = 2 )
func (BookmarkStatus) Descriptor ¶
func (BookmarkStatus) Descriptor() protoreflect.EnumDescriptor
func (BookmarkStatus) Enum ¶
func (x BookmarkStatus) Enum() *BookmarkStatus
func (BookmarkStatus) EnumDescriptor
deprecated
func (BookmarkStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use BookmarkStatus.Descriptor instead.
func (BookmarkStatus) Number ¶
func (x BookmarkStatus) Number() protoreflect.EnumNumber
func (BookmarkStatus) String ¶
func (x BookmarkStatus) String() string
func (BookmarkStatus) Type ¶
func (BookmarkStatus) Type() protoreflect.EnumType
type CreateGoalRequest ¶
type CreateGoalRequest struct { NumPages int64 `protobuf:"varint,1,opt,name=num_pages,json=numPages,proto3" json:"num_pages,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*CreateGoalRequest) Descriptor
deprecated
func (*CreateGoalRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateGoalRequest.ProtoReflect.Descriptor instead.
func (*CreateGoalRequest) GetNumPages ¶
func (x *CreateGoalRequest) GetNumPages() int64
func (*CreateGoalRequest) GetTime ¶
func (x *CreateGoalRequest) GetTime() *timestamppb.Timestamp
func (*CreateGoalRequest) GetUserId ¶
func (x *CreateGoalRequest) GetUserId() uint64
func (*CreateGoalRequest) ProtoMessage ¶
func (*CreateGoalRequest) ProtoMessage()
func (*CreateGoalRequest) ProtoReflect ¶
func (x *CreateGoalRequest) ProtoReflect() protoreflect.Message
func (*CreateGoalRequest) Reset ¶
func (x *CreateGoalRequest) Reset()
func (*CreateGoalRequest) String ¶
func (x *CreateGoalRequest) String() string
type CreateGoalResponse ¶
type CreateGoalResponse struct { GoalInfo *GoalInfo `protobuf:"bytes,1,opt,name=goal_info,json=goalInfo,proto3" json:"goal_info,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*CreateGoalResponse) Descriptor
deprecated
func (*CreateGoalResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateGoalResponse.ProtoReflect.Descriptor instead.
func (*CreateGoalResponse) GetGoalInfo ¶
func (x *CreateGoalResponse) GetGoalInfo() *GoalInfo
func (*CreateGoalResponse) GetTime ¶
func (x *CreateGoalResponse) GetTime() *timestamppb.Timestamp
func (*CreateGoalResponse) ProtoMessage ¶
func (*CreateGoalResponse) ProtoMessage()
func (*CreateGoalResponse) ProtoReflect ¶
func (x *CreateGoalResponse) ProtoReflect() protoreflect.Message
func (*CreateGoalResponse) Reset ¶
func (x *CreateGoalResponse) Reset()
func (*CreateGoalResponse) String ¶
func (x *CreateGoalResponse) String() string
type CreateReadEventRequest ¶
type CreateReadEventRequest struct { ReadEventInfo *ReadEventInfo `protobuf:"bytes,1,opt,name=read_event_info,json=readEventInfo,proto3" json:"read_event_info,omitempty"` BookmarkId uint64 `protobuf:"varint,2,opt,name=bookmark_id,json=bookmarkId,proto3" json:"bookmark_id,omitempty"` // contains filtered or unexported fields }
func (*CreateReadEventRequest) Descriptor
deprecated
func (*CreateReadEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateReadEventRequest.ProtoReflect.Descriptor instead.
func (*CreateReadEventRequest) GetBookmarkId ¶
func (x *CreateReadEventRequest) GetBookmarkId() uint64
func (*CreateReadEventRequest) GetReadEventInfo ¶
func (x *CreateReadEventRequest) GetReadEventInfo() *ReadEventInfo
func (*CreateReadEventRequest) ProtoMessage ¶
func (*CreateReadEventRequest) ProtoMessage()
func (*CreateReadEventRequest) ProtoReflect ¶
func (x *CreateReadEventRequest) ProtoReflect() protoreflect.Message
func (*CreateReadEventRequest) Reset ¶
func (x *CreateReadEventRequest) Reset()
func (*CreateReadEventRequest) String ¶
func (x *CreateReadEventRequest) String() string
type CreateReadEventResponse ¶
type CreateReadEventResponse struct { ReadEventId uint64 `protobuf:"varint,1,opt,name=read_event_id,json=readEventId,proto3" json:"read_event_id,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*CreateReadEventResponse) Descriptor
deprecated
func (*CreateReadEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateReadEventResponse.ProtoReflect.Descriptor instead.
func (*CreateReadEventResponse) GetReadEventId ¶
func (x *CreateReadEventResponse) GetReadEventId() uint64
func (*CreateReadEventResponse) GetTime ¶
func (x *CreateReadEventResponse) GetTime() *timestamppb.Timestamp
func (*CreateReadEventResponse) ProtoMessage ¶
func (*CreateReadEventResponse) ProtoMessage()
func (*CreateReadEventResponse) ProtoReflect ¶
func (x *CreateReadEventResponse) ProtoReflect() protoreflect.Message
func (*CreateReadEventResponse) Reset ¶
func (x *CreateReadEventResponse) Reset()
func (*CreateReadEventResponse) String ¶
func (x *CreateReadEventResponse) String() string
type GetBookmarkStatusRequest ¶
type GetBookmarkStatusRequest struct { BookmarkId uint64 `protobuf:"varint,1,opt,name=bookmark_id,json=bookmarkId,proto3" json:"bookmark_id,omitempty"` // contains filtered or unexported fields }
func (*GetBookmarkStatusRequest) Descriptor
deprecated
func (*GetBookmarkStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBookmarkStatusRequest.ProtoReflect.Descriptor instead.
func (*GetBookmarkStatusRequest) GetBookmarkId ¶
func (x *GetBookmarkStatusRequest) GetBookmarkId() uint64
func (*GetBookmarkStatusRequest) ProtoMessage ¶
func (*GetBookmarkStatusRequest) ProtoMessage()
func (*GetBookmarkStatusRequest) ProtoReflect ¶
func (x *GetBookmarkStatusRequest) ProtoReflect() protoreflect.Message
func (*GetBookmarkStatusRequest) Reset ¶
func (x *GetBookmarkStatusRequest) Reset()
func (*GetBookmarkStatusRequest) String ¶
func (x *GetBookmarkStatusRequest) String() string
type GetBookmarkStatusResponse ¶
type GetBookmarkStatusResponse struct { BookmarkStatus BookmarkStatus `` /* 132-byte string literal not displayed */ Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*GetBookmarkStatusResponse) Descriptor
deprecated
func (*GetBookmarkStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBookmarkStatusResponse.ProtoReflect.Descriptor instead.
func (*GetBookmarkStatusResponse) GetBookmarkStatus ¶
func (x *GetBookmarkStatusResponse) GetBookmarkStatus() BookmarkStatus
func (*GetBookmarkStatusResponse) GetTime ¶
func (x *GetBookmarkStatusResponse) GetTime() *timestamppb.Timestamp
func (*GetBookmarkStatusResponse) ProtoMessage ¶
func (*GetBookmarkStatusResponse) ProtoMessage()
func (*GetBookmarkStatusResponse) ProtoReflect ¶
func (x *GetBookmarkStatusResponse) ProtoReflect() protoreflect.Message
func (*GetBookmarkStatusResponse) Reset ¶
func (x *GetBookmarkStatusResponse) Reset()
func (*GetBookmarkStatusResponse) String ¶
func (x *GetBookmarkStatusResponse) String() string
type GetBooksRequest ¶
type GetBooksRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetBooksRequest) Descriptor
deprecated
func (*GetBooksRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBooksRequest.ProtoReflect.Descriptor instead.
func (*GetBooksRequest) GetUserId ¶
func (x *GetBooksRequest) GetUserId() uint64
func (*GetBooksRequest) ProtoMessage ¶
func (*GetBooksRequest) ProtoMessage()
func (*GetBooksRequest) ProtoReflect ¶
func (x *GetBooksRequest) ProtoReflect() protoreflect.Message
func (*GetBooksRequest) Reset ¶
func (x *GetBooksRequest) Reset()
func (*GetBooksRequest) String ¶
func (x *GetBooksRequest) String() string
type GetBooksResponse ¶
type GetBooksResponse struct { BooksInfo []*BookInfo `protobuf:"bytes,1,rep,name=books_info,json=booksInfo,proto3" json:"books_info,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*GetBooksResponse) Descriptor
deprecated
func (*GetBooksResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBooksResponse.ProtoReflect.Descriptor instead.
func (*GetBooksResponse) GetBooksInfo ¶
func (x *GetBooksResponse) GetBooksInfo() []*BookInfo
func (*GetBooksResponse) GetTime ¶
func (x *GetBooksResponse) GetTime() *timestamppb.Timestamp
func (*GetBooksResponse) ProtoMessage ¶
func (*GetBooksResponse) ProtoMessage()
func (*GetBooksResponse) ProtoReflect ¶
func (x *GetBooksResponse) ProtoReflect() protoreflect.Message
func (*GetBooksResponse) Reset ¶
func (x *GetBooksResponse) Reset()
func (*GetBooksResponse) String ¶
func (x *GetBooksResponse) String() string
type GetGoalsRequest ¶
type GetGoalsRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetGoalsRequest) Descriptor
deprecated
func (*GetGoalsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGoalsRequest.ProtoReflect.Descriptor instead.
func (*GetGoalsRequest) GetUserId ¶
func (x *GetGoalsRequest) GetUserId() uint64
func (*GetGoalsRequest) ProtoMessage ¶
func (*GetGoalsRequest) ProtoMessage()
func (*GetGoalsRequest) ProtoReflect ¶
func (x *GetGoalsRequest) ProtoReflect() protoreflect.Message
func (*GetGoalsRequest) Reset ¶
func (x *GetGoalsRequest) Reset()
func (*GetGoalsRequest) String ¶
func (x *GetGoalsRequest) String() string
type GetGoalsResponse ¶
type GetGoalsResponse struct { GoalsInfo []*GoalInfo `protobuf:"bytes,1,rep,name=goals_info,json=goalsInfo,proto3" json:"goals_info,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*GetGoalsResponse) Descriptor
deprecated
func (*GetGoalsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetGoalsResponse.ProtoReflect.Descriptor instead.
func (*GetGoalsResponse) GetGoalsInfo ¶
func (x *GetGoalsResponse) GetGoalsInfo() []*GoalInfo
func (*GetGoalsResponse) GetTime ¶
func (x *GetGoalsResponse) GetTime() *timestamppb.Timestamp
func (*GetGoalsResponse) ProtoMessage ¶
func (*GetGoalsResponse) ProtoMessage()
func (*GetGoalsResponse) ProtoReflect ¶
func (x *GetGoalsResponse) ProtoReflect() protoreflect.Message
func (*GetGoalsResponse) Reset ¶
func (x *GetGoalsResponse) Reset()
func (*GetGoalsResponse) String ¶
func (x *GetGoalsResponse) String() string
type GetOpponentsRequest ¶
type GetOpponentsRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetOpponentsRequest) Descriptor
deprecated
func (*GetOpponentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOpponentsRequest.ProtoReflect.Descriptor instead.
func (*GetOpponentsRequest) GetUserId ¶
func (x *GetOpponentsRequest) GetUserId() uint64
func (*GetOpponentsRequest) ProtoMessage ¶
func (*GetOpponentsRequest) ProtoMessage()
func (*GetOpponentsRequest) ProtoReflect ¶
func (x *GetOpponentsRequest) ProtoReflect() protoreflect.Message
func (*GetOpponentsRequest) Reset ¶
func (x *GetOpponentsRequest) Reset()
func (*GetOpponentsRequest) String ¶
func (x *GetOpponentsRequest) String() string
type GetOpponentsResponse ¶
type GetOpponentsResponse struct { Opponents []*OpponentsInfo `protobuf:"bytes,1,rep,name=opponents,proto3" json:"opponents,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*GetOpponentsResponse) Descriptor
deprecated
func (*GetOpponentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOpponentsResponse.ProtoReflect.Descriptor instead.
func (*GetOpponentsResponse) GetOpponents ¶
func (x *GetOpponentsResponse) GetOpponents() []*OpponentsInfo
func (*GetOpponentsResponse) GetTime ¶
func (x *GetOpponentsResponse) GetTime() *timestamppb.Timestamp
func (*GetOpponentsResponse) ProtoMessage ¶
func (*GetOpponentsResponse) ProtoMessage()
func (*GetOpponentsResponse) ProtoReflect ¶
func (x *GetOpponentsResponse) ProtoReflect() protoreflect.Message
func (*GetOpponentsResponse) Reset ¶
func (x *GetOpponentsResponse) Reset()
func (*GetOpponentsResponse) String ¶
func (x *GetOpponentsResponse) String() string
type GetRankingRequest ¶
type GetRankingRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetRankingRequest) Descriptor
deprecated
func (*GetRankingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRankingRequest.ProtoReflect.Descriptor instead.
func (*GetRankingRequest) GetUserId ¶
func (x *GetRankingRequest) GetUserId() uint64
func (*GetRankingRequest) ProtoMessage ¶
func (*GetRankingRequest) ProtoMessage()
func (*GetRankingRequest) ProtoReflect ¶
func (x *GetRankingRequest) ProtoReflect() protoreflect.Message
func (*GetRankingRequest) Reset ¶
func (x *GetRankingRequest) Reset()
func (*GetRankingRequest) String ¶
func (x *GetRankingRequest) String() string
type GetRankingResponse ¶
type GetRankingResponse struct { RankingInfos []*RankingInfo `protobuf:"bytes,1,rep,name=ranking_infos,json=rankingInfos,proto3" json:"ranking_infos,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*GetRankingResponse) Descriptor
deprecated
func (*GetRankingResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRankingResponse.ProtoReflect.Descriptor instead.
func (*GetRankingResponse) GetRankingInfos ¶
func (x *GetRankingResponse) GetRankingInfos() []*RankingInfo
func (*GetRankingResponse) GetTime ¶
func (x *GetRankingResponse) GetTime() *timestamppb.Timestamp
func (*GetRankingResponse) ProtoMessage ¶
func (*GetRankingResponse) ProtoMessage()
func (*GetRankingResponse) ProtoReflect ¶
func (x *GetRankingResponse) ProtoReflect() protoreflect.Message
func (*GetRankingResponse) Reset ¶
func (x *GetRankingResponse) Reset()
func (*GetRankingResponse) String ¶
func (x *GetRankingResponse) String() string
type GetReadEventsByBookIDRequest ¶
type GetReadEventsByBookIDRequest struct { BookId uint64 `protobuf:"varint,1,opt,name=book_id,json=bookId,proto3" json:"book_id,omitempty"` // contains filtered or unexported fields }
func (*GetReadEventsByBookIDRequest) Descriptor
deprecated
func (*GetReadEventsByBookIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReadEventsByBookIDRequest.ProtoReflect.Descriptor instead.
func (*GetReadEventsByBookIDRequest) GetBookId ¶
func (x *GetReadEventsByBookIDRequest) GetBookId() uint64
func (*GetReadEventsByBookIDRequest) ProtoMessage ¶
func (*GetReadEventsByBookIDRequest) ProtoMessage()
func (*GetReadEventsByBookIDRequest) ProtoReflect ¶
func (x *GetReadEventsByBookIDRequest) ProtoReflect() protoreflect.Message
func (*GetReadEventsByBookIDRequest) Reset ¶
func (x *GetReadEventsByBookIDRequest) Reset()
func (*GetReadEventsByBookIDRequest) String ¶
func (x *GetReadEventsByBookIDRequest) String() string
type GetReadEventsResponse ¶
type GetReadEventsResponse struct { ReadEventsInfo []*ReadEventInfo `protobuf:"bytes,1,rep,name=read_events_info,json=readEventsInfo,proto3" json:"read_events_info,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*GetReadEventsResponse) Descriptor
deprecated
func (*GetReadEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReadEventsResponse.ProtoReflect.Descriptor instead.
func (*GetReadEventsResponse) GetReadEventsInfo ¶
func (x *GetReadEventsResponse) GetReadEventsInfo() []*ReadEventInfo
func (*GetReadEventsResponse) GetTime ¶
func (x *GetReadEventsResponse) GetTime() *timestamppb.Timestamp
func (*GetReadEventsResponse) ProtoMessage ¶
func (*GetReadEventsResponse) ProtoMessage()
func (*GetReadEventsResponse) ProtoReflect ¶
func (x *GetReadEventsResponse) ProtoReflect() protoreflect.Message
func (*GetReadEventsResponse) Reset ¶
func (x *GetReadEventsResponse) Reset()
func (*GetReadEventsResponse) String ¶
func (x *GetReadEventsResponse) String() string
type GetReadPagesByBookIDRequest ¶
type GetReadPagesByBookIDRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` BookId uint64 `protobuf:"varint,2,opt,name=book_id,json=bookId,proto3" json:"book_id,omitempty"` // contains filtered or unexported fields }
func (*GetReadPagesByBookIDRequest) Descriptor
deprecated
func (*GetReadPagesByBookIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReadPagesByBookIDRequest.ProtoReflect.Descriptor instead.
func (*GetReadPagesByBookIDRequest) GetBookId ¶
func (x *GetReadPagesByBookIDRequest) GetBookId() uint64
func (*GetReadPagesByBookIDRequest) GetUserId ¶
func (x *GetReadPagesByBookIDRequest) GetUserId() uint64
func (*GetReadPagesByBookIDRequest) ProtoMessage ¶
func (*GetReadPagesByBookIDRequest) ProtoMessage()
func (*GetReadPagesByBookIDRequest) ProtoReflect ¶
func (x *GetReadPagesByBookIDRequest) ProtoReflect() protoreflect.Message
func (*GetReadPagesByBookIDRequest) Reset ¶
func (x *GetReadPagesByBookIDRequest) Reset()
func (*GetReadPagesByBookIDRequest) String ¶
func (x *GetReadPagesByBookIDRequest) String() string
type GetReadPagesRequest ¶
type GetReadPagesRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetReadPagesRequest) Descriptor
deprecated
func (*GetReadPagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReadPagesRequest.ProtoReflect.Descriptor instead.
func (*GetReadPagesRequest) GetUserId ¶
func (x *GetReadPagesRequest) GetUserId() uint64
func (*GetReadPagesRequest) ProtoMessage ¶
func (*GetReadPagesRequest) ProtoMessage()
func (*GetReadPagesRequest) ProtoReflect ¶
func (x *GetReadPagesRequest) ProtoReflect() protoreflect.Message
func (*GetReadPagesRequest) Reset ¶
func (x *GetReadPagesRequest) Reset()
func (*GetReadPagesRequest) String ¶
func (x *GetReadPagesRequest) String() string
type GetReadPagesResponse ¶
type GetReadPagesResponse struct { ReadPages uint64 `protobuf:"varint,1,opt,name=read_pages,json=readPages,proto3" json:"read_pages,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*GetReadPagesResponse) Descriptor
deprecated
func (*GetReadPagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReadPagesResponse.ProtoReflect.Descriptor instead.
func (*GetReadPagesResponse) GetReadPages ¶
func (x *GetReadPagesResponse) GetReadPages() uint64
func (*GetReadPagesResponse) GetTime ¶
func (x *GetReadPagesResponse) GetTime() *timestamppb.Timestamp
func (*GetReadPagesResponse) ProtoMessage ¶
func (*GetReadPagesResponse) ProtoMessage()
func (*GetReadPagesResponse) ProtoReflect ¶
func (x *GetReadPagesResponse) ProtoReflect() protoreflect.Message
func (*GetReadPagesResponse) Reset ¶
func (x *GetReadPagesResponse) Reset()
func (*GetReadPagesResponse) String ¶
func (x *GetReadPagesResponse) String() string
type GetReadPagesWithDurationRequest ¶
type GetReadPagesWithDurationRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*GetReadPagesWithDurationRequest) Descriptor
deprecated
func (*GetReadPagesWithDurationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReadPagesWithDurationRequest.ProtoReflect.Descriptor instead.
func (*GetReadPagesWithDurationRequest) GetEndTime ¶
func (x *GetReadPagesWithDurationRequest) GetEndTime() *timestamppb.Timestamp
func (*GetReadPagesWithDurationRequest) GetStartTime ¶
func (x *GetReadPagesWithDurationRequest) GetStartTime() *timestamppb.Timestamp
func (*GetReadPagesWithDurationRequest) GetUserId ¶
func (x *GetReadPagesWithDurationRequest) GetUserId() uint64
func (*GetReadPagesWithDurationRequest) ProtoMessage ¶
func (*GetReadPagesWithDurationRequest) ProtoMessage()
func (*GetReadPagesWithDurationRequest) ProtoReflect ¶
func (x *GetReadPagesWithDurationRequest) ProtoReflect() protoreflect.Message
func (*GetReadPagesWithDurationRequest) Reset ¶
func (x *GetReadPagesWithDurationRequest) Reset()
func (*GetReadPagesWithDurationRequest) String ¶
func (x *GetReadPagesWithDurationRequest) String() string
type GetReadRatioRequest ¶
type GetReadRatioRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetReadRatioRequest) Descriptor
deprecated
func (*GetReadRatioRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReadRatioRequest.ProtoReflect.Descriptor instead.
func (*GetReadRatioRequest) GetUserId ¶
func (x *GetReadRatioRequest) GetUserId() uint64
func (*GetReadRatioRequest) ProtoMessage ¶
func (*GetReadRatioRequest) ProtoMessage()
func (*GetReadRatioRequest) ProtoReflect ¶
func (x *GetReadRatioRequest) ProtoReflect() protoreflect.Message
func (*GetReadRatioRequest) Reset ¶
func (x *GetReadRatioRequest) Reset()
func (*GetReadRatioRequest) String ¶
func (x *GetReadRatioRequest) String() string
type GetReadRatioResponse ¶
type GetReadRatioResponse struct { ReadPercentage float64 `protobuf:"fixed64,1,opt,name=read_percentage,json=readPercentage,proto3" json:"read_percentage,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*GetReadRatioResponse) Descriptor
deprecated
func (*GetReadRatioResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReadRatioResponse.ProtoReflect.Descriptor instead.
func (*GetReadRatioResponse) GetReadPercentage ¶
func (x *GetReadRatioResponse) GetReadPercentage() float64
func (*GetReadRatioResponse) GetTime ¶
func (x *GetReadRatioResponse) GetTime() *timestamppb.Timestamp
func (*GetReadRatioResponse) ProtoMessage ¶
func (*GetReadRatioResponse) ProtoMessage()
func (*GetReadRatioResponse) ProtoReflect ¶
func (x *GetReadRatioResponse) ProtoReflect() protoreflect.Message
func (*GetReadRatioResponse) Reset ¶
func (x *GetReadRatioResponse) Reset()
func (*GetReadRatioResponse) String ¶
func (x *GetReadRatioResponse) String() string
type GetReadSecondsRequest ¶
type GetReadSecondsRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetReadSecondsRequest) Descriptor
deprecated
func (*GetReadSecondsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReadSecondsRequest.ProtoReflect.Descriptor instead.
func (*GetReadSecondsRequest) GetUserId ¶
func (x *GetReadSecondsRequest) GetUserId() uint64
func (*GetReadSecondsRequest) ProtoMessage ¶
func (*GetReadSecondsRequest) ProtoMessage()
func (*GetReadSecondsRequest) ProtoReflect ¶
func (x *GetReadSecondsRequest) ProtoReflect() protoreflect.Message
func (*GetReadSecondsRequest) Reset ¶
func (x *GetReadSecondsRequest) Reset()
func (*GetReadSecondsRequest) String ¶
func (x *GetReadSecondsRequest) String() string
type GetReadSecondsResponse ¶
type GetReadSecondsResponse struct { ReadSeconds uint64 `protobuf:"varint,1,opt,name=read_seconds,json=readSeconds,proto3" json:"read_seconds,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*GetReadSecondsResponse) Descriptor
deprecated
func (*GetReadSecondsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReadSecondsResponse.ProtoReflect.Descriptor instead.
func (*GetReadSecondsResponse) GetReadSeconds ¶
func (x *GetReadSecondsResponse) GetReadSeconds() uint64
func (*GetReadSecondsResponse) GetTime ¶
func (x *GetReadSecondsResponse) GetTime() *timestamppb.Timestamp
func (*GetReadSecondsResponse) ProtoMessage ¶
func (*GetReadSecondsResponse) ProtoMessage()
func (*GetReadSecondsResponse) ProtoReflect ¶
func (x *GetReadSecondsResponse) ProtoReflect() protoreflect.Message
func (*GetReadSecondsResponse) Reset ¶
func (x *GetReadSecondsResponse) Reset()
func (*GetReadSecondsResponse) String ¶
func (x *GetReadSecondsResponse) String() string
type GetReadSecondsWithDurationRequest ¶
type GetReadSecondsWithDurationRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*GetReadSecondsWithDurationRequest) Descriptor
deprecated
func (*GetReadSecondsWithDurationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReadSecondsWithDurationRequest.ProtoReflect.Descriptor instead.
func (*GetReadSecondsWithDurationRequest) GetEndTime ¶
func (x *GetReadSecondsWithDurationRequest) GetEndTime() *timestamppb.Timestamp
func (*GetReadSecondsWithDurationRequest) GetStartTime ¶
func (x *GetReadSecondsWithDurationRequest) GetStartTime() *timestamppb.Timestamp
func (*GetReadSecondsWithDurationRequest) GetUserId ¶
func (x *GetReadSecondsWithDurationRequest) GetUserId() uint64
func (*GetReadSecondsWithDurationRequest) ProtoMessage ¶
func (*GetReadSecondsWithDurationRequest) ProtoMessage()
func (*GetReadSecondsWithDurationRequest) ProtoReflect ¶
func (x *GetReadSecondsWithDurationRequest) ProtoReflect() protoreflect.Message
func (*GetReadSecondsWithDurationRequest) Reset ¶
func (x *GetReadSecondsWithDurationRequest) Reset()
func (*GetReadSecondsWithDurationRequest) String ¶
func (x *GetReadSecondsWithDurationRequest) String() string
type GetUserRequest ¶
type GetUserRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetUserId ¶
func (x *GetUserRequest) GetUserId() uint64
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct { UsersInfo []*UserInfo `protobuf:"bytes,1,rep,name=users_info,json=usersInfo,proto3" json:"users_info,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetTime ¶
func (x *GetUserResponse) GetTime() *timestamppb.Timestamp
func (*GetUserResponse) GetUsersInfo ¶
func (x *GetUserResponse) GetUsersInfo() []*UserInfo
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type GoalClient ¶
type GoalClient interface { CreateGoal(ctx context.Context, in *CreateGoalRequest, opts ...grpc.CallOption) (*CreateGoalResponse, error) GetGoals(ctx context.Context, in *GetGoalsRequest, opts ...grpc.CallOption) (*GetGoalsResponse, error) }
GoalClient is the client API for Goal 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 NewGoalClient ¶
func NewGoalClient(cc grpc.ClientConnInterface) GoalClient
type GoalInfo ¶
type GoalInfo struct { GoalId uint64 `protobuf:"varint,1,opt,name=goal_id,json=goalId,proto3" json:"goal_id,omitempty"` StartDate *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` EndDate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` // int64 time_amount_minutes = 4; NumPages int64 `protobuf:"varint,5,opt,name=num_pages,json=numPages,proto3" json:"num_pages,omitempty"` GoalStatus GoalStatus `protobuf:"varint,6,opt,name=goal_status,json=goalStatus,proto3,enum=bookowl.GoalStatus" json:"goal_status,omitempty"` UserId uint64 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GoalInfo) Descriptor
deprecated
func (*GoalInfo) GetEndDate ¶
func (x *GoalInfo) GetEndDate() *timestamppb.Timestamp
func (*GoalInfo) GetGoalStatus ¶
func (x *GoalInfo) GetGoalStatus() GoalStatus
func (*GoalInfo) GetNumPages ¶
func (*GoalInfo) GetStartDate ¶
func (x *GoalInfo) GetStartDate() *timestamppb.Timestamp
func (*GoalInfo) ProtoMessage ¶
func (*GoalInfo) ProtoMessage()
func (*GoalInfo) ProtoReflect ¶
func (x *GoalInfo) ProtoReflect() protoreflect.Message
type GoalServer ¶
type GoalServer interface { CreateGoal(context.Context, *CreateGoalRequest) (*CreateGoalResponse, error) GetGoals(context.Context, *GetGoalsRequest) (*GetGoalsResponse, error) // contains filtered or unexported methods }
GoalServer is the server API for Goal service. All implementations must embed UnimplementedGoalServer for forward compatibility
type GoalStatus ¶
type GoalStatus int32
const ( GoalStatus_GOAL_UNKNOWN GoalStatus = 0 GoalStatus_GOAL_PENDING GoalStatus = 1 GoalStatus_GOAL_DOING GoalStatus = 2 GoalStatus_GOAL_COMPLETE GoalStatus = 3 GoalStatus_GOAL_FAILED GoalStatus = 4 )
func (GoalStatus) Descriptor ¶
func (GoalStatus) Descriptor() protoreflect.EnumDescriptor
func (GoalStatus) Enum ¶
func (x GoalStatus) Enum() *GoalStatus
func (GoalStatus) EnumDescriptor
deprecated
func (GoalStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use GoalStatus.Descriptor instead.
func (GoalStatus) Number ¶
func (x GoalStatus) Number() protoreflect.EnumNumber
func (GoalStatus) String ¶
func (x GoalStatus) String() string
func (GoalStatus) Type ¶
func (GoalStatus) Type() protoreflect.EnumType
type MatchClient ¶
type MatchClient interface { RegisterOpponents(ctx context.Context, in *RegisterOpponentsRequest, opts ...grpc.CallOption) (*RegisterOpponentsResponse, error) GetOpponents(ctx context.Context, in *GetOpponentsRequest, opts ...grpc.CallOption) (*GetOpponentsResponse, error) GetRanking(ctx context.Context, in *GetRankingRequest, opts ...grpc.CallOption) (*GetRankingResponse, error) GetUsers(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) }
MatchClient is the client API for Match 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 NewMatchClient ¶
func NewMatchClient(cc grpc.ClientConnInterface) MatchClient
type MatchServer ¶
type MatchServer interface { RegisterOpponents(context.Context, *RegisterOpponentsRequest) (*RegisterOpponentsResponse, error) GetOpponents(context.Context, *GetOpponentsRequest) (*GetOpponentsResponse, error) GetRanking(context.Context, *GetRankingRequest) (*GetRankingResponse, error) GetUsers(context.Context, *GetUserRequest) (*GetUserResponse, error) // contains filtered or unexported methods }
MatchServer is the server API for Match service. All implementations must embed UnimplementedMatchServer for forward compatibility
type OpponentsInfo ¶
type OpponentsInfo struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` ReadPages uint64 `protobuf:"varint,3,opt,name=read_pages,json=readPages,proto3" json:"read_pages,omitempty"` // contains filtered or unexported fields }
func (*OpponentsInfo) Descriptor
deprecated
func (*OpponentsInfo) Descriptor() ([]byte, []int)
Deprecated: Use OpponentsInfo.ProtoReflect.Descriptor instead.
func (*OpponentsInfo) GetId ¶
func (x *OpponentsInfo) GetId() uint64
func (*OpponentsInfo) GetName ¶
func (x *OpponentsInfo) GetName() string
func (*OpponentsInfo) GetReadPages ¶
func (x *OpponentsInfo) GetReadPages() uint64
func (*OpponentsInfo) ProtoMessage ¶
func (*OpponentsInfo) ProtoMessage()
func (*OpponentsInfo) ProtoReflect ¶
func (x *OpponentsInfo) ProtoReflect() protoreflect.Message
func (*OpponentsInfo) Reset ¶
func (x *OpponentsInfo) Reset()
func (*OpponentsInfo) String ¶
func (x *OpponentsInfo) String() string
type RankingInfo ¶
type RankingInfo struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Ranking uint64 `protobuf:"varint,3,opt,name=ranking,proto3" json:"ranking,omitempty"` ReadPages int64 `protobuf:"varint,4,opt,name=read_pages,json=readPages,proto3" json:"read_pages,omitempty"` // contains filtered or unexported fields }
func (*RankingInfo) Descriptor
deprecated
func (*RankingInfo) Descriptor() ([]byte, []int)
Deprecated: Use RankingInfo.ProtoReflect.Descriptor instead.
func (*RankingInfo) GetId ¶
func (x *RankingInfo) GetId() uint64
func (*RankingInfo) GetName ¶
func (x *RankingInfo) GetName() string
func (*RankingInfo) GetRanking ¶
func (x *RankingInfo) GetRanking() uint64
func (*RankingInfo) GetReadPages ¶
func (x *RankingInfo) GetReadPages() int64
func (*RankingInfo) ProtoMessage ¶
func (*RankingInfo) ProtoMessage()
func (*RankingInfo) ProtoReflect ¶
func (x *RankingInfo) ProtoReflect() protoreflect.Message
func (*RankingInfo) Reset ¶
func (x *RankingInfo) Reset()
func (*RankingInfo) String ¶
func (x *RankingInfo) String() string
type ReadEventClient ¶
type ReadEventClient interface { CreateReadEvent(ctx context.Context, in *CreateReadEventRequest, opts ...grpc.CallOption) (*CreateReadEventResponse, error) GetReadEventsByBookID(ctx context.Context, in *GetReadEventsByBookIDRequest, opts ...grpc.CallOption) (*GetReadEventsResponse, error) }
ReadEventClient is the client API for ReadEvent 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 NewReadEventClient ¶
func NewReadEventClient(cc grpc.ClientConnInterface) ReadEventClient
type ReadEventInfo ¶
type ReadEventInfo struct { ReadStartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=read_start_time,json=readStartTime,proto3" json:"read_start_time,omitempty"` ReadEndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_end_time,json=readEndTime,proto3" json:"read_end_time,omitempty"` ReadStartWidthRevel int64 `protobuf:"varint,3,opt,name=read_start_width_revel,json=readStartWidthRevel,proto3" json:"read_start_width_revel,omitempty"` ReadEndWidthLevel int64 `protobuf:"varint,4,opt,name=read_end_width_level,json=readEndWidthLevel,proto3" json:"read_end_width_level,omitempty"` // contains filtered or unexported fields }
func (*ReadEventInfo) Descriptor
deprecated
func (*ReadEventInfo) Descriptor() ([]byte, []int)
Deprecated: Use ReadEventInfo.ProtoReflect.Descriptor instead.
func (*ReadEventInfo) GetReadEndTime ¶
func (x *ReadEventInfo) GetReadEndTime() *timestamppb.Timestamp
func (*ReadEventInfo) GetReadEndWidthLevel ¶
func (x *ReadEventInfo) GetReadEndWidthLevel() int64
func (*ReadEventInfo) GetReadStartTime ¶
func (x *ReadEventInfo) GetReadStartTime() *timestamppb.Timestamp
func (*ReadEventInfo) GetReadStartWidthRevel ¶
func (x *ReadEventInfo) GetReadStartWidthRevel() int64
func (*ReadEventInfo) ProtoMessage ¶
func (*ReadEventInfo) ProtoMessage()
func (*ReadEventInfo) ProtoReflect ¶
func (x *ReadEventInfo) ProtoReflect() protoreflect.Message
func (*ReadEventInfo) Reset ¶
func (x *ReadEventInfo) Reset()
func (*ReadEventInfo) String ¶
func (x *ReadEventInfo) String() string
type ReadEventServer ¶
type ReadEventServer interface { CreateReadEvent(context.Context, *CreateReadEventRequest) (*CreateReadEventResponse, error) GetReadEventsByBookID(context.Context, *GetReadEventsByBookIDRequest) (*GetReadEventsResponse, error) // contains filtered or unexported methods }
ReadEventServer is the server API for ReadEvent service. All implementations must embed UnimplementedReadEventServer for forward compatibility
type ReadStatus ¶
type ReadStatus int32
ReadStatus links to server/pkg/models/user_book.go ReadStatus
const ( ReadStatus_READ_UNSPECIFIED ReadStatus = 0 ReadStatus_READ_UNREAD ReadStatus = 1 ReadStatus_READ_READING ReadStatus = 2 ReadStatus_READ_SUSPENDED ReadStatus = 3 ReadStatus_READ_COMPLETE ReadStatus = 4 )
func (ReadStatus) Descriptor ¶
func (ReadStatus) Descriptor() protoreflect.EnumDescriptor
func (ReadStatus) Enum ¶
func (x ReadStatus) Enum() *ReadStatus
func (ReadStatus) EnumDescriptor
deprecated
func (ReadStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReadStatus.Descriptor instead.
func (ReadStatus) Number ¶
func (x ReadStatus) Number() protoreflect.EnumNumber
func (ReadStatus) String ¶
func (x ReadStatus) String() string
func (ReadStatus) Type ¶
func (ReadStatus) Type() protoreflect.EnumType
type RegisterBookRequest ¶
type RegisterBookRequest struct { Isbn string `protobuf:"bytes,1,opt,name=isbn,proto3" json:"isbn,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*RegisterBookRequest) Descriptor
deprecated
func (*RegisterBookRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterBookRequest.ProtoReflect.Descriptor instead.
func (*RegisterBookRequest) GetIsbn ¶
func (x *RegisterBookRequest) GetIsbn() string
func (*RegisterBookRequest) GetUserId ¶
func (x *RegisterBookRequest) GetUserId() uint64
func (*RegisterBookRequest) ProtoMessage ¶
func (*RegisterBookRequest) ProtoMessage()
func (*RegisterBookRequest) ProtoReflect ¶
func (x *RegisterBookRequest) ProtoReflect() protoreflect.Message
func (*RegisterBookRequest) Reset ¶
func (x *RegisterBookRequest) Reset()
func (*RegisterBookRequest) String ¶
func (x *RegisterBookRequest) String() string
type RegisterBookResponse ¶
type RegisterBookResponse struct { BookInfo *BookInfo `protobuf:"bytes,1,opt,name=book_info,json=bookInfo,proto3" json:"book_info,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*RegisterBookResponse) Descriptor
deprecated
func (*RegisterBookResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterBookResponse.ProtoReflect.Descriptor instead.
func (*RegisterBookResponse) GetBookInfo ¶
func (x *RegisterBookResponse) GetBookInfo() *BookInfo
func (*RegisterBookResponse) GetTime ¶
func (x *RegisterBookResponse) GetTime() *timestamppb.Timestamp
func (*RegisterBookResponse) ProtoMessage ¶
func (*RegisterBookResponse) ProtoMessage()
func (*RegisterBookResponse) ProtoReflect ¶
func (x *RegisterBookResponse) ProtoReflect() protoreflect.Message
func (*RegisterBookResponse) Reset ¶
func (x *RegisterBookResponse) Reset()
func (*RegisterBookResponse) String ¶
func (x *RegisterBookResponse) String() string
type RegisterOpponentsRequest ¶
type RegisterOpponentsRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` OpponentIds []uint64 `protobuf:"varint,2,rep,packed,name=opponent_ids,json=opponentIds,proto3" json:"opponent_ids,omitempty"` // contains filtered or unexported fields }
func (*RegisterOpponentsRequest) Descriptor
deprecated
func (*RegisterOpponentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterOpponentsRequest.ProtoReflect.Descriptor instead.
func (*RegisterOpponentsRequest) GetOpponentIds ¶
func (x *RegisterOpponentsRequest) GetOpponentIds() []uint64
func (*RegisterOpponentsRequest) GetUserId ¶
func (x *RegisterOpponentsRequest) GetUserId() uint64
func (*RegisterOpponentsRequest) ProtoMessage ¶
func (*RegisterOpponentsRequest) ProtoMessage()
func (*RegisterOpponentsRequest) ProtoReflect ¶
func (x *RegisterOpponentsRequest) ProtoReflect() protoreflect.Message
func (*RegisterOpponentsRequest) Reset ¶
func (x *RegisterOpponentsRequest) Reset()
func (*RegisterOpponentsRequest) String ¶
func (x *RegisterOpponentsRequest) String() string
type RegisterOpponentsResponse ¶
type RegisterOpponentsResponse struct { Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*RegisterOpponentsResponse) Descriptor
deprecated
func (*RegisterOpponentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterOpponentsResponse.ProtoReflect.Descriptor instead.
func (*RegisterOpponentsResponse) GetTime ¶
func (x *RegisterOpponentsResponse) GetTime() *timestamppb.Timestamp
func (*RegisterOpponentsResponse) ProtoMessage ¶
func (*RegisterOpponentsResponse) ProtoMessage()
func (*RegisterOpponentsResponse) ProtoReflect ¶
func (x *RegisterOpponentsResponse) ProtoReflect() protoreflect.Message
func (*RegisterOpponentsResponse) Reset ¶
func (x *RegisterOpponentsResponse) Reset()
func (*RegisterOpponentsResponse) String ¶
func (x *RegisterOpponentsResponse) String() string
type UnimplementedBookServer ¶
type UnimplementedBookServer struct { }
UnimplementedBookServer must be embedded to have forward compatible implementations.
func (UnimplementedBookServer) GetBookmarkStatus ¶
func (UnimplementedBookServer) GetBookmarkStatus(context.Context, *GetBookmarkStatusRequest) (*GetBookmarkStatusResponse, error)
func (UnimplementedBookServer) GetBooks ¶
func (UnimplementedBookServer) GetBooks(context.Context, *GetBooksRequest) (*GetBooksResponse, error)
func (UnimplementedBookServer) GetReadPages ¶
func (UnimplementedBookServer) GetReadPages(context.Context, *GetReadPagesRequest) (*GetReadPagesResponse, error)
func (UnimplementedBookServer) GetReadPagesByBookID ¶
func (UnimplementedBookServer) GetReadPagesByBookID(context.Context, *GetReadPagesByBookIDRequest) (*GetReadPagesResponse, error)
func (UnimplementedBookServer) GetReadPagesWithDuration ¶
func (UnimplementedBookServer) GetReadPagesWithDuration(context.Context, *GetReadPagesWithDurationRequest) (*GetReadPagesResponse, error)
func (UnimplementedBookServer) GetReadRatio ¶
func (UnimplementedBookServer) GetReadRatio(context.Context, *GetReadRatioRequest) (*GetReadRatioResponse, error)
func (UnimplementedBookServer) GetReadSeconds ¶
func (UnimplementedBookServer) GetReadSeconds(context.Context, *GetReadSecondsRequest) (*GetReadSecondsResponse, error)
func (UnimplementedBookServer) GetReadSecondsWithDuration ¶
func (UnimplementedBookServer) GetReadSecondsWithDuration(context.Context, *GetReadSecondsWithDurationRequest) (*GetReadSecondsResponse, error)
func (UnimplementedBookServer) RegisterBook ¶
func (UnimplementedBookServer) RegisterBook(context.Context, *RegisterBookRequest) (*RegisterBookResponse, error)
func (UnimplementedBookServer) UpdateBookmarkID ¶
func (UnimplementedBookServer) UpdateBookmarkID(context.Context, *UpdateBookmarkIDRequest) (*UpdateBookResponse, error)
func (UnimplementedBookServer) UpdateReadStatus ¶
func (UnimplementedBookServer) UpdateReadStatus(context.Context, *UpdateReadStatusRequest) (*UpdateBookResponse, error)
type UnimplementedGoalServer ¶
type UnimplementedGoalServer struct { }
UnimplementedGoalServer must be embedded to have forward compatible implementations.
func (UnimplementedGoalServer) CreateGoal ¶
func (UnimplementedGoalServer) CreateGoal(context.Context, *CreateGoalRequest) (*CreateGoalResponse, error)
func (UnimplementedGoalServer) GetGoals ¶
func (UnimplementedGoalServer) GetGoals(context.Context, *GetGoalsRequest) (*GetGoalsResponse, error)
type UnimplementedMatchServer ¶
type UnimplementedMatchServer struct { }
UnimplementedMatchServer must be embedded to have forward compatible implementations.
func (UnimplementedMatchServer) GetOpponents ¶
func (UnimplementedMatchServer) GetOpponents(context.Context, *GetOpponentsRequest) (*GetOpponentsResponse, error)
func (UnimplementedMatchServer) GetRanking ¶
func (UnimplementedMatchServer) GetRanking(context.Context, *GetRankingRequest) (*GetRankingResponse, error)
func (UnimplementedMatchServer) GetUsers ¶
func (UnimplementedMatchServer) GetUsers(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedMatchServer) RegisterOpponents ¶
func (UnimplementedMatchServer) RegisterOpponents(context.Context, *RegisterOpponentsRequest) (*RegisterOpponentsResponse, error)
type UnimplementedReadEventServer ¶
type UnimplementedReadEventServer struct { }
UnimplementedReadEventServer must be embedded to have forward compatible implementations.
func (UnimplementedReadEventServer) CreateReadEvent ¶
func (UnimplementedReadEventServer) CreateReadEvent(context.Context, *CreateReadEventRequest) (*CreateReadEventResponse, error)
func (UnimplementedReadEventServer) GetReadEventsByBookID ¶
func (UnimplementedReadEventServer) GetReadEventsByBookID(context.Context, *GetReadEventsByBookIDRequest) (*GetReadEventsResponse, error)
type UnsafeBookServer ¶
type UnsafeBookServer interface {
// contains filtered or unexported methods
}
UnsafeBookServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BookServer will result in compilation errors.
type UnsafeGoalServer ¶
type UnsafeGoalServer interface {
// contains filtered or unexported methods
}
UnsafeGoalServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GoalServer will result in compilation errors.
type UnsafeMatchServer ¶
type UnsafeMatchServer interface {
// contains filtered or unexported methods
}
UnsafeMatchServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MatchServer will result in compilation errors.
type UnsafeReadEventServer ¶
type UnsafeReadEventServer interface {
// contains filtered or unexported methods
}
UnsafeReadEventServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReadEventServer will result in compilation errors.
type UpdateBookResponse ¶
type UpdateBookResponse struct { BookInfo *BookInfo `protobuf:"bytes,1,opt,name=book_info,json=bookInfo,proto3" json:"book_info,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*UpdateBookResponse) Descriptor
deprecated
func (*UpdateBookResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBookResponse.ProtoReflect.Descriptor instead.
func (*UpdateBookResponse) GetBookInfo ¶
func (x *UpdateBookResponse) GetBookInfo() *BookInfo
func (*UpdateBookResponse) GetTime ¶
func (x *UpdateBookResponse) GetTime() *timestamppb.Timestamp
func (*UpdateBookResponse) ProtoMessage ¶
func (*UpdateBookResponse) ProtoMessage()
func (*UpdateBookResponse) ProtoReflect ¶
func (x *UpdateBookResponse) ProtoReflect() protoreflect.Message
func (*UpdateBookResponse) Reset ¶
func (x *UpdateBookResponse) Reset()
func (*UpdateBookResponse) String ¶
func (x *UpdateBookResponse) String() string
type UpdateBookmarkIDRequest ¶
type UpdateBookmarkIDRequest struct { BookId uint64 `protobuf:"varint,1,opt,name=book_id,json=bookId,proto3" json:"book_id,omitempty"` BookmarkId uint64 `protobuf:"varint,2,opt,name=bookmark_id,json=bookmarkId,proto3" json:"bookmark_id,omitempty"` BookWidth uint64 `protobuf:"varint,3,opt,name=book_width,json=bookWidth,proto3" json:"book_width,omitempty"` // contains filtered or unexported fields }
func (*UpdateBookmarkIDRequest) Descriptor
deprecated
func (*UpdateBookmarkIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBookmarkIDRequest.ProtoReflect.Descriptor instead.
func (*UpdateBookmarkIDRequest) GetBookId ¶
func (x *UpdateBookmarkIDRequest) GetBookId() uint64
func (*UpdateBookmarkIDRequest) GetBookWidth ¶
func (x *UpdateBookmarkIDRequest) GetBookWidth() uint64
func (*UpdateBookmarkIDRequest) GetBookmarkId ¶
func (x *UpdateBookmarkIDRequest) GetBookmarkId() uint64
func (*UpdateBookmarkIDRequest) ProtoMessage ¶
func (*UpdateBookmarkIDRequest) ProtoMessage()
func (*UpdateBookmarkIDRequest) ProtoReflect ¶
func (x *UpdateBookmarkIDRequest) ProtoReflect() protoreflect.Message
func (*UpdateBookmarkIDRequest) Reset ¶
func (x *UpdateBookmarkIDRequest) Reset()
func (*UpdateBookmarkIDRequest) String ¶
func (x *UpdateBookmarkIDRequest) String() string
type UpdateReadStatusRequest ¶
type UpdateReadStatusRequest struct { BookId uint64 `protobuf:"varint,1,opt,name=book_id,json=bookId,proto3" json:"book_id,omitempty"` ReadStatus ReadStatus `protobuf:"varint,2,opt,name=read_status,json=readStatus,proto3,enum=bookowl.ReadStatus" json:"read_status,omitempty"` // contains filtered or unexported fields }
func (*UpdateReadStatusRequest) Descriptor
deprecated
func (*UpdateReadStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateReadStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateReadStatusRequest) GetBookId ¶
func (x *UpdateReadStatusRequest) GetBookId() uint64
func (*UpdateReadStatusRequest) GetReadStatus ¶
func (x *UpdateReadStatusRequest) GetReadStatus() ReadStatus
func (*UpdateReadStatusRequest) ProtoMessage ¶
func (*UpdateReadStatusRequest) ProtoMessage()
func (*UpdateReadStatusRequest) ProtoReflect ¶
func (x *UpdateReadStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateReadStatusRequest) Reset ¶
func (x *UpdateReadStatusRequest) Reset()
func (*UpdateReadStatusRequest) String ¶
func (x *UpdateReadStatusRequest) String() string
type UserInfo ¶
type UserInfo struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message