Documentation
¶
Index ¶
- func BaseURL() string
- type AuthController
- func (a *AuthController) GetUserID(c echo.Context) string
- func (ctrl *AuthController) Login(ctx echo.Context) error
- func (ctrl *AuthController) OAuthCallback(ctx echo.Context) error
- func (ctrl *AuthController) OAuthLogin(ctx echo.Context) error
- func (ctrl *AuthController) OAuthRefresh(ctx echo.Context) error
- func (a *AuthController) UseJWT(g *echo.Group)
- type Controller
- type DelayController
- type HealthcheckController
- func (a *HealthcheckController) GetUserID(c echo.Context) string
- func (ctrl *HealthcheckController) LiveCheck(ctx echo.Context, params oapi.LiveCheckParams) error
- func (ctrl *HealthcheckController) ReadyCheck(ctx echo.Context, params oapi.ReadyCheckParams) error
- func (a *HealthcheckController) UseJWT(g *echo.Group)
- type JwtCustomClaims
- type ProfileController
- func (ctrl *ProfileController) GetProfile(ctx echo.Context, id oapi.ProfileId) error
- func (a *ProfileController) GetUserID(c echo.Context) string
- func (ctrl *ProfileController) ListProfiles(ctx echo.Context, params oapi.ListProfilesParams) error
- func (ctrl *ProfileController) RemoveProfile(ctx echo.Context, id oapi.ProfileId) error
- func (ctrl *ProfileController) SaveProfile(ctx echo.Context) error
- func (ctrl *ProfileController) UpdateProfile(ctx echo.Context, id oapi.ProfileId) error
- func (a *ProfileController) UseJWT(g *echo.Group)
- type TaskController
- func (ctrl *TaskController) GetTask(ctx echo.Context, queueName string, taskId oapi.TaskId) error
- func (ctrl *TaskController) GetTaskResponse(ctx echo.Context, queueName string, taskId oapi.TaskId) error
- func (a *TaskController) GetUserID(c echo.Context) string
- func (a *TaskController) UseJWT(g *echo.Group)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthController ¶
type AuthController struct {
// contains filtered or unexported fields
}
func NewAuth ¶
func NewAuth(cfg config.ServerSettings, auth usecase.Auth, oidc *middleware.Auth) AuthController
func (*AuthController) Login ¶
func (ctrl *AuthController) Login(ctx echo.Context) error
func (*AuthController) OAuthCallback ¶
func (ctrl *AuthController) OAuthCallback(ctx echo.Context) error
func (*AuthController) OAuthLogin ¶
func (ctrl *AuthController) OAuthLogin(ctx echo.Context) error
func (*AuthController) OAuthRefresh ¶
func (ctrl *AuthController) OAuthRefresh(ctx echo.Context) error
type Controller ¶
type Controller struct { AuthController ProfileController HealthcheckController TaskController DelayController }
type DelayController ¶
type DelayController struct {
// contains filtered or unexported fields
}
func NewDelay ¶
func NewDelay(cfg config.ServerSettings, task task.Task) DelayController
func (*DelayController) ProcessBackground ¶
func (ctrl *DelayController) ProcessBackground(ctx echo.Context) error
type HealthcheckController ¶
type HealthcheckController struct {
// contains filtered or unexported fields
}
func NewHealthCheck ¶
func NewHealthCheck(cfg config.ServerSettings, healthcheck usecase.Healthcheck) HealthcheckController
func (*HealthcheckController) GetUserID ¶
func (a *HealthcheckController) GetUserID(c echo.Context) string
func (*HealthcheckController) LiveCheck ¶
func (ctrl *HealthcheckController) LiveCheck(ctx echo.Context, params oapi.LiveCheckParams) error
func (*HealthcheckController) ReadyCheck ¶
func (ctrl *HealthcheckController) ReadyCheck(ctx echo.Context, params oapi.ReadyCheckParams) error
type JwtCustomClaims ¶
type JwtCustomClaims struct { UserID string `json:"user_id"` jwt.RegisteredClaims }
type ProfileController ¶
type ProfileController struct {
// contains filtered or unexported fields
}
func NewProfile ¶
func NewProfile(cfg config.ServerSettings, profile usecase.Profile) ProfileController
func (*ProfileController) GetProfile ¶
func (ctrl *ProfileController) GetProfile(ctx echo.Context, id oapi.ProfileId) error
func (*ProfileController) ListProfiles ¶
func (ctrl *ProfileController) ListProfiles(ctx echo.Context, params oapi.ListProfilesParams) error
func (*ProfileController) RemoveProfile ¶
func (ctrl *ProfileController) RemoveProfile(ctx echo.Context, id oapi.ProfileId) error
func (*ProfileController) SaveProfile ¶
func (ctrl *ProfileController) SaveProfile(ctx echo.Context) error
func (*ProfileController) UpdateProfile ¶
func (ctrl *ProfileController) UpdateProfile(ctx echo.Context, id oapi.ProfileId) error
type TaskController ¶
type TaskController struct {
// contains filtered or unexported fields
}
func NewTask ¶
func NewTask(cfg config.ServerSettings, task task.Task) TaskController
func (*TaskController) GetTask ¶
func (ctrl *TaskController) GetTask(ctx echo.Context, queueName string, taskId oapi.TaskId) error
func (*TaskController) GetTaskResponse ¶
func (ctrl *TaskController) GetTaskResponse(ctx echo.Context, queueName string, taskId oapi.TaskId) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.