Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerContext ¶
type ServerContext struct { echo.Context // contains filtered or unexported fields }
ServerContext extends the echo context and contains the property "Repository"
func NewServerContext ¶
func NewServerContext(config *configuration.Configuration, ctx echo.Context) *ServerContext
func ToServerContext ¶
func ToServerContext(ctx echo.Context) *ServerContext
ToServerContext cast to the server context
func (ServerContext) HasRepository ¶
func (c ServerContext) HasRepository() bool
HasRepository checks the existing repository
func (ServerContext) Repository ¶
func (c ServerContext) Repository() *repository.Repository
Click to show internal directories.
Click to hide internal directories.