Documentation ¶
Index ¶
- Constants
- func EmbeddedFile(fs embed.FS, fileName string, contentType string) echo.HandlerFunc
- func Healthz(e echo.Context) error
- type Server
- func (s *Server) EmployeeReport(e echo.Context) error
- func (s *Server) EmployeeReportUpdate(e echo.Context) error
- func (s *Server) GetOdooSession(e echo.Context) *odoo.Session
- func (s *Server) GetSessionData(e echo.Context) controller.SessionData
- func (s Server) Login(e echo.Context) error
- func (s Server) LoginForm(e echo.Context) error
- func (s Server) Logout(e echo.Context) error
- func (s *Server) MonthlyOvertimeReport(e echo.Context) error
- func (s *Server) ProcessReportInput(e echo.Context) error
- func (s Server) RedirectTo(url string) echo.HandlerFunc
- func (s *Server) RequestReportForm(e echo.Context) error
- func (s *Server) SaveOdooSession(e echo.Context, odooSession *odoo.Session) error
- func (s *Server) SaveSessionData(e echo.Context, data controller.SessionData) error
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) ShowError(e echo.Context, err error) error
- func (s *Server) YearlyOvertimeReport(e echo.Context) error
- type VersionInfo
Constants ¶
View Source
const (
// DataCookieID is the cookie identifier for storing additional data.
DataCookieID = "odootools-data"
)
View Source
const (
// SessionCookieID is the session cookie identifier.
SessionCookieID = "odootools"
)
Variables ¶
This section is empty.
Functions ¶
func EmbeddedFile ¶ added in v0.6.0
Types ¶
type Server ¶
type Server struct { Echo *echo.Echo // contains filtered or unexported fields }
func (*Server) EmployeeReport ¶ added in v0.10.0
EmployeeReport GET /report/employees/:year/:month
func (*Server) EmployeeReportUpdate ¶ added in v0.11.0
EmployeeReportUpdate POST /report/employee/:employee/:year/:month. Updates the payslip with the overtime value of the given month.
func (*Server) GetOdooSession ¶ added in v0.6.0
GetOdooSession returns the Odoo session from the session cookie. Returns nil if there is no active session.
func (*Server) GetSessionData ¶ added in v0.9.0
func (s *Server) GetSessionData(e echo.Context) controller.SessionData
func (*Server) MonthlyOvertimeReport ¶ added in v1.5.0
MonthlyOvertimeReport GET /report/:id/:year/:month
func (*Server) ProcessReportInput ¶ added in v0.6.0
ProcessReportInput POST /report
func (Server) RedirectTo ¶ added in v0.6.0
func (*Server) RequestReportForm ¶
RequestReportForm GET /report
func (*Server) SaveOdooSession ¶ added in v0.6.0
func (*Server) SaveSessionData ¶ added in v0.9.0
func (s *Server) SaveSessionData(e echo.Context, data controller.SessionData) error
func (*Server) YearlyOvertimeReport ¶ added in v1.5.0
YearlyOvertimeReport GET /report/:id/:year
type VersionInfo ¶ added in v1.4.0
func (VersionInfo) String ¶ added in v1.4.0
func (vi VersionInfo) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.