Documentation ¶
Index ¶
- Constants
- Variables
- type BookServer
- func (s BookServer) GetBookmarkStatus(ctx context.Context, r *api.GetBookmarkStatusRequest) (*api.GetBookmarkStatusResponse, error)
- func (s BookServer) GetBooks(ctx context.Context, r *api.GetBooksRequest) (*api.GetBooksResponse, error)
- func (s BookServer) GetReadPages(ctx context.Context, r *api.GetReadPagesRequest) (*api.GetReadPagesResponse, error)
- func (s BookServer) GetReadPagesByBookID(ctx context.Context, r *api.GetReadPagesByBookIDRequest) (*api.GetReadPagesResponse, error)
- func (s BookServer) GetReadPagesWithDuration(ctx context.Context, r *api.GetReadPagesWithDurationRequest) (*api.GetReadPagesResponse, error)
- func (s BookServer) GetReadRatio(ctx context.Context, r *api.GetReadRatioRequest) (*api.GetReadRatioResponse, error)
- func (s BookServer) GetReadSeconds(ctx context.Context, r *api.GetReadSecondsRequest) (*api.GetReadSecondsResponse, error)
- func (s BookServer) GetReadSecondsWithDuration(ctx context.Context, r *api.GetReadSecondsWithDurationRequest) (*api.GetReadSecondsResponse, 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 MatchServer
- func (s MatchServer) GetOpponents(ctx context.Context, r *api.GetOpponentsRequest) (*api.GetOpponentsResponse, error)
- func (s MatchServer) GetRanking(ctx context.Context, r *api.GetRankingRequest) (*api.GetRankingResponse, error)
- func (s MatchServer) GetUsers(ctx context.Context, r *api.GetUserRequest) (*api.GetUserResponse, error)
- func (s MatchServer) RegisterOpponents(ctx context.Context, r *api.RegisterOpponentsRequest) (*api.RegisterOpponentsResponse, error)
- type ReadEventServer
Constants ¶
View Source
const (
Api = "api"
)
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) GetBookmarkStatus ¶
func (s BookServer) GetBookmarkStatus(ctx context.Context, r *api.GetBookmarkStatusRequest) (*api.GetBookmarkStatusResponse, error)
func (BookServer) GetBooks ¶
func (s BookServer) GetBooks(ctx context.Context, r *api.GetBooksRequest) (*api.GetBooksResponse, error)
func (BookServer) GetReadPages ¶
func (s BookServer) GetReadPages(ctx context.Context, r *api.GetReadPagesRequest) (*api.GetReadPagesResponse, error)
func (BookServer) GetReadPagesByBookID ¶
func (s BookServer) GetReadPagesByBookID(ctx context.Context, r *api.GetReadPagesByBookIDRequest) (*api.GetReadPagesResponse, error)
func (BookServer) GetReadPagesWithDuration ¶
func (s BookServer) GetReadPagesWithDuration(ctx context.Context, r *api.GetReadPagesWithDurationRequest) (*api.GetReadPagesResponse, error)
func (BookServer) GetReadRatio ¶
func (s BookServer) GetReadRatio(ctx context.Context, r *api.GetReadRatioRequest) (*api.GetReadRatioResponse, error)
func (BookServer) GetReadSeconds ¶
func (s BookServer) GetReadSeconds(ctx context.Context, r *api.GetReadSecondsRequest) (*api.GetReadSecondsResponse, error)
func (BookServer) GetReadSecondsWithDuration ¶
func (s BookServer) GetReadSecondsWithDuration(ctx context.Context, r *api.GetReadSecondsWithDurationRequest) (*api.GetReadSecondsResponse, 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
func (GoalServer) CreateGoal ¶
func (s GoalServer) CreateGoal(ctx context.Context, r *api.CreateGoalRequest) (*api.CreateGoalResponse, error)
func (GoalServer) GetGoals ¶
func (s GoalServer) GetGoals(ctx context.Context, r *api.GetGoalsRequest) (*api.GetGoalsResponse, error)
type MatchServer ¶
type MatchServer struct {
api.UnimplementedMatchServer
}
func NewMatchServer ¶
func NewMatchServer() *MatchServer
func (MatchServer) GetOpponents ¶
func (s MatchServer) GetOpponents(ctx context.Context, r *api.GetOpponentsRequest) (*api.GetOpponentsResponse, error)
func (MatchServer) GetRanking ¶
func (s MatchServer) GetRanking(ctx context.Context, r *api.GetRankingRequest) (*api.GetRankingResponse, error)
func (MatchServer) GetUsers ¶
func (s MatchServer) GetUsers(ctx context.Context, r *api.GetUserRequest) (*api.GetUserResponse, error)
func (MatchServer) RegisterOpponents ¶
func (s MatchServer) RegisterOpponents(ctx context.Context, r *api.RegisterOpponentsRequest) (*api.RegisterOpponentsResponse, error)
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.