2024-01-07 08:13:35 +00:00
|
|
|
package interfaces
|
|
|
|
|
|
|
|
import "github.com/vmihailenco/msgpack/v5"
|
|
|
|
|
2024-01-08 05:16:32 +00:00
|
|
|
//go:generate mockgen -source=vote.go -destination=../mocks/interfaces/vote.go -package=interfaces
|
|
|
|
|
2024-01-07 08:13:35 +00:00
|
|
|
type NodeVotes interface {
|
|
|
|
msgpack.CustomEncoder
|
|
|
|
msgpack.CustomDecoder
|
2024-01-07 08:55:33 +00:00
|
|
|
Good() int
|
|
|
|
Bad() int
|
2024-01-09 11:54:22 +00:00
|
|
|
Upvote()
|
|
|
|
Downvote()
|
2024-01-07 08:13:35 +00:00
|
|
|
}
|