Documentation
¶
Index ¶
- Variables
- func AuthHandler(auth *Auth) http.HandlerFunc
- func CORS(cfg *Config) func(handler http.Handler) http.Handler
- func CloseDB(db *sql.DB)
- func ConnectDB(cfg *Config) error
- func Fatal(err error)
- func GetDB() *sql.DB
- func GetFatal[V any](value V, err error) V
- func MeHandler(auth *Auth) http.HandlerFunc
- type Auth
- type Config
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var NopHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) {
}
Functions ¶
func AuthHandler ¶
func AuthHandler(auth *Auth) http.HandlerFunc
func MeHandler ¶
func MeHandler(auth *Auth) http.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.