Versions in this module Expand all Collapse all v1 v1.1.0 Nov 20, 2021 v1.0.0 Oct 30, 2021 Changes in this version + var ErrNoBookmark = errors.New("specified Bookmark is not found") + var ErrNoReadingUserBook = errors.New("UserBook in reading with specified Bookmark is not found") + type BookServer struct + func NewBookServer() *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 struct + func NewGoalServer() *GoalServer + type ReadEventServer struct + func NewReadEventServer() *ReadEventServer + func (s ReadEventServer) CreateReadEvent(ctx context.Context, r *api.CreateReadEventRequest) (*api.CreateReadEventResponse, error) + func (s ReadEventServer) GetReadEventsByBookID(ctx context.Context, r *api.GetReadEventsByBookIDRequest) (*api.GetReadEventsResponse, error)