Documentation ¶
Overview ¶
Package speaker contains speaker application services
Index ¶
- type RBAC
- type Securer
- type Service
- type Speaker
- func (e *Speaker) Create(c echo.Context, req takrib.Speaker) (*takrib.Speaker, error)
- func (e *Speaker) Delete(c echo.Context, id int) error
- func (e *Speaker) List(c echo.Context, p *takrib.Pagination) ([]takrib.Speaker, error)
- func (e *Speaker) Update(c echo.Context, req *Update) (*takrib.Speaker, error)
- func (e *Speaker) View(c echo.Context, id int) (*takrib.Speaker, 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.Speaker) (*takrib.Speaker, error) List(echo.Context, *takrib.Pagination) ([]takrib.Speaker, error) View(echo.Context, int) (*takrib.Speaker, error) Delete(echo.Context, int) error Update(echo.Context, *Update) (*takrib.Speaker, error) }
Service represents speaker application interface
type Speaker ¶
type Speaker struct {
// contains filtered or unexported fields
}
Speaker represents speaker application service
func Initialize ¶
Initialize initalizes speaker application service with defaults
type UDB ¶
type UDB interface { Create(orm.DB, takrib.Speaker) (*takrib.Speaker, error) View(orm.DB, int) (*takrib.Speaker, error) List(orm.DB, *takrib.ListQuery, *takrib.Pagination) ([]takrib.Speaker, error) Update(orm.DB, *takrib.Speaker) error Delete(orm.DB, *takrib.Speaker) error }
UDB represents speaker repository interface
type Update ¶
type Update struct { ID int Name *string ShortBiography *string LongBiography *string Gender *string Email *string Mobile *string Website *string Twitter *string Github *string Linkedin *string Organisation *string Position *string Country *string City *string PhotoURL *string ThumbnailImageURL *string }
Update contains speaker's information used for updating
Click to show internal directories.
Click to hide internal directories.