Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInternalServerError will throw if any the Internal Server Error happen ErrInternalServerError = errors.New("Internal Server Error") // ErrNotFound will throw if the requested item is not exists ErrNotFound = errors.New("Your requested Item is not found") // ErrConflict will throw if the current action already exists ErrConflict = errors.New("Your Item already exist") // ErrBadParamInput will throw if the given request-body or params is not valid ErrBadParamInput = errors.New("Given Param is not valid") )
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { ID int64 `json:"id"` Title string `json:"title" validate:"required"` Content string `json:"content" validate:"required"` Author Author `json:"author"` UpdatedAt time.Time `json:"updated_at"` CreatedAt time.Time `json:"created_at"` }
Article ...
type ArticleRepository ¶
type ArticleRepository interface { }
ArticleRepository represent the article's repository contract
type ArticleUsecase ¶
type ArticleUsecase interface { }
ArticleUsecase represent the article's usecases
type Author ¶
type Author struct { ID int64 `json:"id"` Name string `json:"name"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
Author ...
type AuthorRepository ¶
AuthorRepository represent the author's repository contract
Click to show internal directories.
Click to hide internal directories.