rate

package module
v0.0.0-...-fda234a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

Types

type Rate

type Rate struct {
	UUID        string `json:"uuid"`
	Rating      int32  `json:"rating"`
	UserUUID    string `json:"user_uuid"`
	CommentUUID string `json:"comment_uuid"`
	ProductUUID string `json:"product_uuid"`
	CreatedAt   int64  `json:"created_at"`
	UpdatedAt   int64  `json:"updated_at"`
	DeletedAt   int64  `json:"deleted_at"`
}

func (*Rate) String

func (r *Rate) String() string

type RateNotFoundError

type RateNotFoundError error

type RateRepository

type RateRepository interface {
	FindByUUID(string) (*Rate, error)
	Store(*Rate) (string, error)
	Update(*Rate) error
	DeleteByUUID(string) error
}

type RateRepositoryRedisConfig

type RateRepositoryRedisConfig struct {
	SentinelHost string
	SentinelPort int
	Password     string
	MasterName   string
}

func (*RateRepositoryRedisConfig) Connect

Directories

Path Synopsis
protobuf module

Jump to

Keyboard shortcuts

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