service

package
v0.0.0-...-04ccc7c Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RatingSerializer

type RatingSerializer interface {
	Decode(input []byte) (*model.Rating, error)
	DecodeRange(input []byte) ([]*model.Rating, error)
	DecodeMap(input []byte) (map[string]interface{}, error)
	DecodeInto(input []byte, target interface{}) error
	Encode(input interface{}) ([]byte, error)
}

type RatingService

type RatingService interface {
	IncrementViews(entity string) (int64, error)
	IncrementOrders(entity string) (int64, error)
	IncrementSearches(entity string) (int64, error)
	CalculateRating(entity string) (int64, error)
	RetrieveRating(entity string) (int64, error)
	UpdateRating(entity string) error
}

Jump to

Keyboard shortcuts

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