Documentation ¶
Index ¶
- Variables
- type BookServer
- func (s BookServer) GetBooksByBookmarkID(ctx context.Context, r *api.GetBooksByBookmarkIDRequest) (*api.GetBooksResponse, error)
- func (s BookServer) GetBooksByUserID(ctx context.Context, r *api.GetBooksByUserIDRequest) (*api.GetBooksResponse, error)
- func (s BookServer) RegisterBook(ctx context.Context, r *api.RegisterBookRequest) (*api.RegisterBookResponse, error)
- func (s BookServer) UpdateBookmarkID(ctx context.Context, r *api.UpdateBookmarkIDRequest) (*api.UpdateBookResponse, error)
- func (s BookServer) UpdateReadStatus(ctx context.Context, r *api.UpdateReadStatusRequest) (*api.UpdateBookResponse, error)
- type GoalServer
- type ReadEventServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoBookmark = errors.New("specified Bookmark is not found") ErrNoReadingUserBook = errors.New("UserBook in reading with specified Bookmark is not found") )
Functions ¶
This section is empty.
Types ¶
type BookServer ¶
type BookServer struct {
api.UnimplementedBookServer
}
func NewBookServer ¶
func NewBookServer() *BookServer
func (BookServer) GetBooksByBookmarkID ¶
func (s BookServer) GetBooksByBookmarkID(ctx context.Context, r *api.GetBooksByBookmarkIDRequest) (*api.GetBooksResponse, error)
func (BookServer) GetBooksByUserID ¶
func (s BookServer) GetBooksByUserID(ctx context.Context, r *api.GetBooksByUserIDRequest) (*api.GetBooksResponse, error)
func (BookServer) RegisterBook ¶
func (s BookServer) RegisterBook(ctx context.Context, r *api.RegisterBookRequest) (*api.RegisterBookResponse, error)
func (BookServer) UpdateBookmarkID ¶
func (s BookServer) UpdateBookmarkID(ctx context.Context, r *api.UpdateBookmarkIDRequest) (*api.UpdateBookResponse, error)
func (BookServer) UpdateReadStatus ¶
func (s BookServer) UpdateReadStatus(ctx context.Context, r *api.UpdateReadStatusRequest) (*api.UpdateBookResponse, error)
type GoalServer ¶
type GoalServer struct {
api.UnimplementedGoalServer
}
func NewGoalServer ¶
func NewGoalServer() *GoalServer
type ReadEventServer ¶
type ReadEventServer struct {
api.UnimplementedReadEventServer
}
func NewReadEventServer ¶
func NewReadEventServer() *ReadEventServer
func (ReadEventServer) CreateReadEvent ¶
func (s ReadEventServer) CreateReadEvent(ctx context.Context, r *api.CreateReadEventRequest) (*api.CreateReadEventResponse, error)
func (ReadEventServer) GetReadEventsByBookID ¶
func (s ReadEventServer) GetReadEventsByBookID(ctx context.Context, r *api.GetReadEventsByBookIDRequest) (*api.GetReadEventsResponse, error)
Click to show internal directories.
Click to hide internal directories.