Documentation ¶
Index ¶
- func ElementDifference(after, before []uint) []uint
- func GinResponseError(c *gin.Context, code int, message string, error string)
- type AccessDetails
- type ETicketUtil
- type EmailUtil
- type LogUtil
- type SnapUtil
- type TokenDetails
- type TokenUtil
- func (tu *TokenUtil) CreateToken(userId uint64) (*TokenDetails, error)
- func (tu *TokenUtil) DeleteAuthn(givenUuid string) (int64, error)
- func (tu *TokenUtil) ExtractToken(c *gin.Context) string
- func (tu *TokenUtil) FetchAuthn(uuid string) error
- func (tu *TokenUtil) GetValidatedAccess(c *gin.Context) (*AccessDetails, error)
- func (tu *TokenUtil) Refresh(c *gin.Context) (map[string]string, error)
- func (tu *TokenUtil) StoreAuthn(userid uint64, td *TokenDetails) error
- func (tu *TokenUtil) ValidateToken(c *gin.Context, secret string) (*jwt.Token, error)
- func (tu *TokenUtil) VerifyToken(c *gin.Context, secret string) (*jwt.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElementDifference ¶
Types ¶
type AccessDetails ¶
type ETicketUtil ¶
type ETicketUtil struct {
// contains filtered or unexported fields
}
func NewETicketUtil ¶
func NewETicketUtil(config *config.AppConfig, minio *minio.Client, log *LogUtil) *ETicketUtil
func (*ETicketUtil) GenerateETicket ¶
func (e *ETicketUtil) GenerateETicket(seatName, seatLink string) ([]byte, error)
type EmailUtil ¶
type EmailUtil struct {
// contains filtered or unexported fields
}
func (*EmailUtil) SendInfoEmail ¶
func (*EmailUtil) SendTicketEmail ¶
type LogUtil ¶
func NewLogUtil ¶
type SnapUtil ¶
type SnapUtil struct {
// contains filtered or unexported fields
}
func NewSnapUtil ¶
func (*SnapUtil) CheckSignature ¶
func (*SnapUtil) CreateTransaction ¶
func (*SnapUtil) HandleCallback ¶
func (u *SnapUtil) HandleCallback()
type TokenDetails ¶
type TokenUtil ¶
type TokenUtil struct {
// contains filtered or unexported fields
}
func NewTokenUtil ¶
func (*TokenUtil) CreateToken ¶
func (tu *TokenUtil) CreateToken(userId uint64) (*TokenDetails, error)
func (*TokenUtil) FetchAuthn ¶
func (*TokenUtil) GetValidatedAccess ¶
func (tu *TokenUtil) GetValidatedAccess(c *gin.Context) (*AccessDetails, error)
func (*TokenUtil) StoreAuthn ¶
func (tu *TokenUtil) StoreAuthn(userid uint64, td *TokenDetails) error
func (*TokenUtil) ValidateToken ¶
Click to show internal directories.
Click to hide internal directories.