Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BannerEntity ¶
type BannerList ¶
type BannerList struct {
Banner []Banner `json:"coins"`
}
type Handler ¶
type Handler struct {
Service Service
}
func NewHandler ¶
func (*Handler) BannersListHandler ¶
func (*Handler) CreateBanner ¶
func (*Handler) DeleteBannerHandler ¶
func (*Handler) GetBannerHandler ¶
type Repository ¶
func NewRepository ¶
func NewRepository(uri string) Repository
func (*Repository) CreateBanner ¶
func (r *Repository) CreateBanner(banner Banner) (*Banner, error)
func (*Repository) DeleteBanner ¶
func (r *Repository) DeleteBanner(id string) error
func (*Repository) GetBannerByID ¶
func (r *Repository) GetBannerByID(id string) (*Banner, error)
type Service ¶
type Service struct {
Repository Repository
}
func NewService ¶
func NewService(repository Repository) Service
func (*Service) BannerList ¶
func (*Service) DeleteNews ¶
Click to show internal directories.
Click to hide internal directories.