Documentation ¶
Index ¶
Constants ¶
View Source
const JWTHeader = "X-Openline-JWT"
View Source
const (
SIGN_TOKEN_EXPIRATION = 60 * 60 * 24 * 365 * 99 // 99 years
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileService ¶
type FileService interface { GetById(ctx context.Context, userEmail, tenantName string, id string) (*model.File, error) UploadSingleFile(ctx context.Context, userEmail, tenantName, basePath, fileId string, multipartFileHeader *multipart.FileHeader, cdnUpload bool) (*model.File, error) DownloadSingleFile(ctx context.Context, userEmail, tenantName, id string, context *gin.Context, inline bool) (*model.File, error) Base64Image(ctx context.Context, userEmail, tenantName string, id string) (*string, error) }
func NewFileService ¶
type JWTTenantUserService ¶
type JWTTenantUserService struct {
// contains filtered or unexported fields
}
func NewJWTTenantUserService ¶
func NewJWTTenantUserService(cfg *config.Config) *JWTTenantUserService
func (*JWTTenantUserService) GetJWTTenantUserEnhancer ¶
func (jtus *JWTTenantUserService) GetJWTTenantUserEnhancer() func(c *gin.Context)
func (*JWTTenantUserService) MakeJWT ¶
func (jtus *JWTTenantUserService) MakeJWT(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.