Documentation ¶
Index ¶
- func CreateAuthenticationMiddleware(userService *user.UserService) echo.MiddlewareFunc
- func CreateRestApi(metricsService *DbMetricsService, journalService *JournalLogService, ...)
- func ParseTime(timeString string, durationDifference int, timezone string) time.Time
- type Api
- func (a *Api) AuthCallback(c echo.Context) error
- func (a *Api) Authenticate(c echo.Context) error
- func (a *Api) DeleteMetric(c echo.Context) error
- func (a *Api) Logout(c echo.Context) error
- func (a *Api) PostJournal(c echo.Context) error
- func (a *Api) ShowDashboard(c echo.Context) error
- func (a *Api) ShowJournal(c echo.Context) error
- type DashboardData
- type DashboardMetric
- type JournalBody
- type Templates
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAuthenticationMiddleware ¶
func CreateAuthenticationMiddleware(userService *user.UserService) echo.MiddlewareFunc
func CreateRestApi ¶
func CreateRestApi(metricsService *DbMetricsService, journalService *JournalLogService, userService *user.UserService)
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func NewApi ¶
func NewApi(metricsService *DbMetricsService, journalService *JournalLogService, store sessions.Store, userService *user.UserService) *Api
func (*Api) AuthCallback ¶
func (*Api) Authenticate ¶
func (*Api) DeleteMetric ¶
func (*Api) PostJournal ¶
func (*Api) ShowDashboard ¶
func (*Api) ShowJournal ¶
type DashboardData ¶
type DashboardData struct {
Metrics []DashboardMetric
}
type DashboardMetric ¶
type JournalBody ¶
type JournalBody struct {
Logs string `json:"logs"`
}
Click to show internal directories.
Click to hide internal directories.