Documentation ¶
Index ¶
- func CertifiedConfig(certs *util.Certified) gin.HandlerFunc
- func CrossOrigin() gin.HandlerFunc
- func DataBase(db *sql.DB, debug bool) gin.HandlerFunc
- func SecurityRest() gin.HandlerFunc
- func Transaction() gin.HandlerFunc
- type ContextWrapper
- type ContextWrapperFactory
- type Entity
- type Header
- type Opcoes
- type Params
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertifiedConfig ¶
func CertifiedConfig(certs *util.Certified) gin.HandlerFunc
func CrossOrigin ¶
func CrossOrigin() gin.HandlerFunc
func SecurityRest ¶
func SecurityRest() gin.HandlerFunc
func Transaction ¶
func Transaction() gin.HandlerFunc
Types ¶
type ContextWrapper ¶
type ContextWrapper interface { Response() Response Bind(e interface{}) GetParam(name string) string GetParamAsInt(name string) int GetParamAsInt64(name string) int64 GetQueryParam(name string) string GetQueryParamAsInt(name string) int GetQueryParamAsInt64(name string) int64 Paginate(pagina int, limite int, total int64) Params GetServiceFactory() service.ServiceFactory }
type ContextWrapperFactory ¶
type ContextWrapperFactory interface {
Create(context *gin.Context) ContextWrapper
}
func NewContextWrapperFactory ¶
func NewContextWrapperFactory() ContextWrapperFactory
type Opcoes ¶
type Opcoes struct { AllowedHosts []string SSLRedirect bool SSLTemporaryRedirect bool SSLHost string SSLProxyHeaders map[string]string STSSeconds int64 STSIncludeSubdomains bool FrameDeny bool CustomFrameOptionsValue string ContentTypeNosniff bool BrowserXssFilter bool ContentSecurityPolicy string BadHostHandler http.Handler }
Click to show internal directories.
Click to hide internal directories.