Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ImageRotateRight is rotate image 90 degree right ImageRotateRight = "right" // ImageRotateLeft is rotate image 90 degree left ImageRotateLeft = "left" // ImageRotateUpsidedown is rotate image upside down ImageRotateUpsidedown = "upsidedown" // ImageRotateAutoVertical is rotate image auto vertical ImageRotateAutoVertical = "autovertical" // ImageRotateAutoHorizontal is rotate image auto horizontal ImageRotateAutoHorizontal = "autohorizontal" )
View Source
const TokenExpired = 60
TokenExpired is token's expired
Variables ¶
View Source
var TokenSecret = os.Getenv("TOKEN_SECRET")
TokenSecret define token secrets
Functions ¶
This section is empty.
Types ¶
type CachedContentOperator ¶
type CachedContentOperator struct {
repository.CachedContentRepository
}
CachedContentOperator struct
func NewCachedContentOperator ¶
func NewCachedContentOperator() *CachedContentOperator
NewCachedContentOperator creates a new CachedContentRepository
type ImageOperator ¶
type ImageOperator struct {
repository.ImageObjectRepository
}
ImageOperator struct
func NewImageOperator ¶
func NewImageOperator(ctx context.Context, contenttype string, option ImageOperatorOption) *ImageOperator
NewImageOperator creates a new ImageObjectRepository
type ImageOperatorOption ¶
type ImageOperatorOption entity.ImageObjectOption
ImageOperatorOption is Option of ImageOperator struct
type JwtOperator ¶
type JwtOperator struct {
repository.JwtClaimsRepository
}
JwtOperator struct
func NewJwtOperator ¶
func NewJwtOperator(ctx context.Context, username string, admin bool, expired time.Duration) *JwtOperator
NewJwtOperator creates a new JwtClaimsRepository
Click to show internal directories.
Click to hide internal directories.