Documentation ¶
Overview ¶
Package handlers provide functions used to handle gRPC.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler depends on gh.GitHubService interface.
func ProvideHandler ¶
func ProvideHandler(service gh.GitHubService) *Handler
func (*Handler) DetailResponseFromDB ¶
func (h *Handler) DetailResponseFromDB(prID int32, db *pr12er.Database) (*pr12er.GetDetailResponse, error)
DetailResponseFromDB builds DetailResponse from Database.
func (*Handler) Report ¶
func (h *Handler) Report(in *pr12er.ReportRequest) (*pr12er.ReportResponse, error)
Report handles when a client sends a bug report or a missing PR video report.
func (*Handler) VideosResponseFromDB ¶
func (h *Handler) VideosResponseFromDB(db *pr12er.Database) *pr12er.GetVideosResponse
VideosResponseFromDB converts DB proto to GetVideosResponse.
Click to show internal directories.
Click to hide internal directories.