Documentation ¶
Overview ¶
Package event contains event application services
Index ¶
- type Event
- func (e *Event) Create(c echo.Context, req takrib.Event) (*takrib.Event, error)
- func (e *Event) Delete(c echo.Context, id int) error
- func (e *Event) List(c echo.Context, p *takrib.Pagination) ([]takrib.Event, error)
- func (e *Event) Update(c echo.Context, req *Update) (*takrib.Event, error)
- func (e *Event) View(c echo.Context, id int) (*takrib.Event, error)
- type RBAC
- type Securer
- type Service
- type UDB
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event represents event application service
func Initialize ¶
Initialize initalizes Event application service with defaults
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.Event) (*takrib.Event, error) List(echo.Context, *takrib.Pagination) ([]takrib.Event, error) View(echo.Context, int) (*takrib.Event, error) Delete(echo.Context, int) error Update(echo.Context, *Update) (*takrib.Event, error) }
Service represents event application interface
type UDB ¶
type UDB interface { Create(orm.DB, takrib.Event) (*takrib.Event, error) View(orm.DB, int) (*takrib.Event, error) List(orm.DB, *takrib.ListQuery, *takrib.Pagination) ([]takrib.Event, error) Update(orm.DB, *takrib.Event) error Delete(orm.DB, *takrib.Event) error }
UDB represents event repository interface
Click to show internal directories.
Click to hide internal directories.