handlers

package
v0.0.0-...-50c32d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2022 License: BSD-2-Clause Imports: 6 Imported by: 0

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

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.

Directories

Path Synopsis
Package prutils contains util functions for PR model.
Package prutils contains util functions for PR model.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL