service

package
v0.0.0-...-21f8c24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

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

func NewFileService(cfg *config.Config, graphqlClient *graphql.Client, log logger.Logger) FileService

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)

type Services

type Services struct {
	FileService FileService
}

func InitServices

func InitServices(cfg *config.Config, graphqlClient *graphql.Client, log logger.Logger) *Services

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL