handlers

package
v0.0.0-...-953a791 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 23 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

type FileStorageHandler

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

func NewFilesHandler

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

func (FileStorageHandler) DeleteGist

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

func (FileStorageHandler) GetGist

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

func (FileStorageHandler) ListBuckets

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

func (FileStorageHandler) UpdateGist

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

func (FileStorageHandler) UploadGist

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

Jump to

Keyboard shortcuts

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