Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func HashPassword(password string) (string, error)
- type ManagementQuery
- type PortfolioQuery
- func (q *PortfolioQuery) CreatePortfolio(portfolio model.Portfolio) error
- func (q *PortfolioQuery) DeletePortfolio(id string) error
- func (q *PortfolioQuery) GetAllPortolios() ([]model.Portfolio, error)
- func (q *PortfolioQuery) GetPortfolio(id string) (model.Portfolio, error)
- func (q *PortfolioQuery) UpdatePortfolio(portfolio model.Portfolio, id string) error
- func (q *PortfolioQuery) UpdateProjectsOfPortfolio(portfolio model.Portfolio, id string) error
- func (q *PortfolioQuery) UpdateSkillsOfPortfolio(portfolio model.Portfolio, id string) error
- type PostQuery
- func (q *PostQuery) CreatePost(post model.Post) error
- func (q *PostQuery) DeletePost(id string) error
- func (q *PostQuery) GetAllPosts() ([]model.Post, error)
- func (q *PostQuery) GetOnePost(id string) (model.Post, error)
- func (q *PostQuery) GetPublishedPosts() ([]model.Post, error)
- func (q *PostQuery) PublishPost(post model.Post, id string) error
- func (q *PostQuery) UpdatePost(post model.Post, id string) error
- type UserQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
CheckPasswordHash compare password with hash
Types ¶
type ManagementQuery ¶
func (*ManagementQuery) GetManagements ¶
func (q *ManagementQuery) GetManagements() ([]model.Management, error)
func (*ManagementQuery) UpdateManagement ¶
func (q *ManagementQuery) UpdateManagement() (model.Management, error)
type PortfolioQuery ¶
func (*PortfolioQuery) CreatePortfolio ¶
func (q *PortfolioQuery) CreatePortfolio(portfolio model.Portfolio) error
create new user
func (*PortfolioQuery) DeletePortfolio ¶
func (q *PortfolioQuery) DeletePortfolio(id string) error
******************************************* delete portfolio by id
func (*PortfolioQuery) GetAllPortolios ¶
func (q *PortfolioQuery) GetAllPortolios() ([]model.Portfolio, error)
func (*PortfolioQuery) GetPortfolio ¶
func (q *PortfolioQuery) GetPortfolio(id string) (model.Portfolio, error)
func (*PortfolioQuery) UpdatePortfolio ¶
func (q *PortfolioQuery) UpdatePortfolio(portfolio model.Portfolio, id string) error
********************************************* update existing main portfolio
func (*PortfolioQuery) UpdateProjectsOfPortfolio ¶
func (q *PortfolioQuery) UpdateProjectsOfPortfolio(portfolio model.Portfolio, id string) error
update existing projects of portfolio
func (*PortfolioQuery) UpdateSkillsOfPortfolio ¶
func (q *PortfolioQuery) UpdateSkillsOfPortfolio(portfolio model.Portfolio, id string) error
update existing skills of portfolio
type PostQuery ¶
func (*PostQuery) CreatePost ¶
create new user
func (*PostQuery) GetPublishedPosts ¶
*************************************************
type UserQuery ¶
func (*UserQuery) CreateUser ¶
create new user
func (*UserQuery) GetAllUsers ¶
list all users
func (*UserQuery) GetOneUser ¶
get user by id
Click to show internal directories.
Click to hide internal directories.