Documentation ¶
Overview ¶
Package sponsor contains Sponsor application services
Index ¶
- type RBAC
- type Securer
- type Service
- type Sponsor
- func (e *Sponsor) Create(c echo.Context, req takrib.Sponsor) (*takrib.Sponsor, error)
- func (e *Sponsor) Delete(c echo.Context, id int) error
- func (e *Sponsor) List(c echo.Context, p *takrib.Pagination) ([]takrib.Sponsor, error)
- func (e *Sponsor) Update(c echo.Context, req *Update) (*takrib.Sponsor, error)
- func (e *Sponsor) View(c echo.Context, id int) (*takrib.Sponsor, error)
- type UDB
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RBAC ¶
type RBAC interface { User(echo.Context) *takrib.AuthUser EnforceUser(echo.Context, int) error IsLowerRole(echo.Context, takrib.AccessRole) error }
RBAC represents role-based-access-control interface
type Service ¶
type Service interface { Create(echo.Context, takrib.Sponsor) (*takrib.Sponsor, error) List(echo.Context, *takrib.Pagination) ([]takrib.Sponsor, error) View(echo.Context, int) (*takrib.Sponsor, error) Delete(echo.Context, int) error Update(echo.Context, *Update) (*takrib.Sponsor, error) }
Service represents sponsor application interface
type Sponsor ¶
type Sponsor struct {
// contains filtered or unexported fields
}
Sponsor represents sponsor application service
func Initialize ¶
Initialize initalizes sponsor application service with defaults
type UDB ¶
type UDB interface { Create(orm.DB, takrib.Sponsor) (*takrib.Sponsor, error) View(orm.DB, int) (*takrib.Sponsor, error) List(orm.DB, *takrib.ListQuery, *takrib.Pagination) ([]takrib.Sponsor, error) Update(orm.DB, *takrib.Sponsor) error Delete(orm.DB, *takrib.Sponsor) error }
UDB represents sponsor repository interface
Click to show internal directories.
Click to hide internal directories.