service

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//BUCKET ...
	BUCKET = "bbq"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageScorer

type ImageScorer struct {
	Score float32
	// contains filtered or unexported fields
}

ImageScorer .

func NewImageScorer

func NewImageScorer(img image.Image, step int) (is *ImageScorer, err error)

NewImageScorer .

func (*ImageScorer) CompareWithPure

func (is *ImageScorer) CompareWithPure()

CompareWithPure 与纯色图片比较hash距离

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service struct

func New

func New(c *conf.Config) (s *Service)

New init

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) ImgUpload

func (s *Service) ImgUpload(ctx context.Context, req *v1.ImgUploadRequest) (rep *v1.ImgUploadResponse, err error)

ImgUpload ...

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping Service

func (*Service) VideoCoverScore

func (s *Service) VideoCoverScore(c context.Context, name string, f multipart.File) (resp *httpV1.ScoreResponse, err error)

VideoCoverScore .

Jump to

Keyboard shortcuts

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