models

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUsernameNotFound        = errors.New("username not found")
	ErrCantParseUsername       = errors.New("can't parse username")
	ErrLinkNotFound            = errors.New("link not found")
	ErrNotImplemented          = errors.New("not implemented")
	ErrIncorrectTypeOfResponse = errors.New("incorrect type of response")
)

Functions

This section is empty.

Types

type Rating

type Rating struct {
	Likes    int
	Dislikes int
}

type UsernameRating

type UsernameRating struct {
	Username string
	*Rating
}

Jump to

Keyboard shortcuts

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