Versions in this module Expand all Collapse all v0 v0.2.1 Aug 11, 2021 Changes in this version + const ErrNoSingleFile + var ErrNoAnyFile = errors.New("field 'file' does not contains any item") + var ErrNoAuth = errors.New("This endpoint must be under AuthRequired") + type Config struct + CookieMaxAge int + CookieName string + HeaderName string + type Service struct + Config *Config + ContextKey string + Log *log.SugaredLogger + func New(cfg Config, logger *log.SugaredLogger, key string) *Service + func (srv Service) AuthRequired() func(c *gin.Context) + func (srv Service) Profile() func(c *gin.Context) + func (srv Service) SetupRouter(r *gin.Engine)