grpc

package
v0.0.0-...-350df58 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

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

Getway defines a gRPC gateway for rating service.

func New

func New(registry discovery.Registry) *Gateway

New creates a new gRPC gateway for a rating service.

func (*Gateway) GetAggregatedRating

func (g *Gateway) GetAggregatedRating(ctx context.Context, recordID model.RecordID, recordType model.RecordType) (float64, error)

GetAggregatedRating returns the aggregated rating for a record or ErrNotfound if there are not rating for it.

Jump to

Keyboard shortcuts

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