rpc

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

Generate *.pb.go files

protoc -I service/rpc/protos service/rpc/protos/*.proto --go_out=service/rpc/protos/ --go-grpc_out=service/rpc/protos/ --go-grpc_opt=paths=source_relative --experimental_allow_proto3_optional

Note: flag experimental_allow_proto3_optional is not required but could be usefull in future works

Generate documentation

mkdir -p ./service/rpc/docs
protoc -I service/rpc/protos service/rpc/protos/*.proto --doc_out=./service/rpc/docs --doc_opt=html,service.html  --experimental_allow_proto3_optional
protoc -I service/rpc/protos service/rpc/protos/*.proto --doc_out=./service/rpc/docs --doc_opt=markdown,service.md  --experimental_allow_proto3_optional

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadBoundingBBox = fmt.Errorf("bad bounding box")
	ErrBadDetections   = fmt.Errorf("bad detections")
)

Functions

func NewMicroserice

func NewMicroserice(engine *license_plate_recognition.LPRQueue) (*grpc.Server, error)

Types

type Microservice

type Microservice struct {
	protos.ServiceServer
	// contains filtered or unexported fields
}

func (*Microservice) ProcessImage

func (ts *Microservice) ProcessImage(ctx context.Context, in *protos.LPRRequest) (*protos.LPRResponse, error)

ProcessImage is to match gRPC server interface. Provides business logic for processing image

func (*Microservice) SendToQueue

microservice is just an alias to internal implementation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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