domain

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content added in v1.4.0

type Content struct {
	ContentId       string    `json:"content_id"`
	CreatorId       string    `json:"creator_id"`
	Title           string    `json:"title"`
	Body            string    `json:"body"`
	PublicationDate time.Time `json:"publication_date"`
}

type User

type User struct {
	Id           string    `json:"id"`
	Firstname    string    `json:"firstname"`
	Lastname     string    `json:"lastname"`
	Email        string    `json:"email"`
	Password     string    `json:"password"`
	Handle       string    `json:"handle"`
	About        string    `json:"about"`
	Contents     []Content `json:"contents"`
	ProfileImage string    `json:"profile_image"`
	Following    int       `json:"following"`
	Followers    int       `json:"followers"`
}

func (User) CheckPasswordHarsh added in v1.4.0

func (u User) CheckPasswordHarsh(password string) bool

Jump to

Keyboard shortcuts

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