Versions in this module Expand all Collapse all v1 v1.3.0 Oct 23, 2023 Changes in this version + const ContentTypeHTML + const ContentTypeJS + const ContentTypeJSON + const ContentTypeXML + const ContentTypeYAML + var ErrAPIInternalDatabase = errors.New("Internal Database Error") + var ErrAPIInvalidRequestFormat = errors.New("Invalid Request Format") + var ErrAPINotFound = errors.New("Not found") + func JSONRequest(url string, value interface{}) error + func NewRequestWithFile(url, filename string) (*http.Request, error) + func Response(ctx *gin.Context, statusCode int, data interface{}, templateName string) + type HTTPError struct + Data interface{} + Error string + Message string + type ModuleRegisterFunc func(*gin.Engine, *Service) + type Service struct + ACME struct{ ... } + AccessLog bool + DB *gorm.DB + Listen string + Mailer *mailer.Service + Session struct{ ... } + Webroot string + WebrootFS http.FileSystem + WebrootIndexDisable bool + func (s *Service) LoadSession(r *gin.Engine) + func (s *Service) Log() *zap.Logger + func (s *Service) Run(log *zap.Logger) error + func (s *Service) SetLog(l *zap.Logger) + func (ws *Service) Bind(r *gin.Engine) + func (ws *Service) ModuleRegister(f ModuleRegisterFunc)