Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtractRequest ¶
type ExtractResponse ¶
type ExtractResponse struct {
Data []byte
}
type Middleware ¶
Middleware describes a service (as opposed to endpoint) middleware.
func InstrumentingMiddleware ¶
func InstrumentingMiddleware(extracts, overlays metrics.Counter) Middleware
InstrumentingMiddleware returns a service middleware that instruments the number of integers summed and characters concatenated over the lifetime of the service.
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
LoggingMiddleware takes a logger as a dependency and returns a ServiceMiddleware.
type OverlayImageRequest ¶
type Service ¶
type Service interface { Extract(context.Context, ExtractRequest) (ExtractResponse, error) AddOverlay(request OverlayImageRequest) (ExtractResponse, error) }
type VideoCaptureService ¶
type VideoCaptureService struct { }
VideoCaptureService expose funcions for video.
func New ¶
func New() VideoCaptureService
func (VideoCaptureService) AddOverlay ¶
func (s VideoCaptureService) AddOverlay(request OverlayImageRequest) (ExtractResponse, error)
func (VideoCaptureService) Extract ¶
func (s VideoCaptureService) Extract(ctx context.Context, request ExtractRequest) (ExtractResponse, error)
Extract extract an image from a video.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package pb is a generated protocol buffer package.
|
Package pb is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.