handlers

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

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MinioBucketName string = utils.GetEnv("MINIO_BUCKET_NAME", "codeflick")

Functions

func InitialiseAuth

func InitialiseAuth()

Types

type AuthHandler

type AuthHandler struct {
	// contains filtered or unexported fields
}

func NewAuthHandler

func NewAuthHandler(db *sqlx.DB) *AuthHandler

func (AuthHandler) GetSessionDetails

func (ah AuthHandler) GetSessionDetails(c echo.Context) error

func (AuthHandler) GoogleOauthCallback

func (ah AuthHandler) GoogleOauthCallback(c echo.Context) error

func (AuthHandler) GoogleOauthLogin

func (ah AuthHandler) GoogleOauthLogin(c echo.Context) error

func (AuthHandler) UpsertUserDetails

func (ah AuthHandler) UpsertUserDetails(c echo.Context, sess *sessions.Session) error

type FileStorageHandler

type FileStorageHandler struct {
	// contains filtered or unexported fields
}

func NewFilesHandler

func NewFilesHandler(db *sqlx.DB, minio *minio.Client) *FileStorageHandler

func (FileStorageHandler) ListBuckets

func (fh FileStorageHandler) ListBuckets(c echo.Context) error

func (FileStorageHandler) UploadFile

func (fh FileStorageHandler) UploadFile(c echo.Context) error

Jump to

Keyboard shortcuts

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