app

package
v0.0.0-...-19c4467 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDbClient

func GetDbClient() *sqlx.DB

func GetEnvVar

func GetEnvVar()

func SanityCheck

func SanityCheck()

func Start

func Start()

Types

type ArticleHandler

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

func (ArticleHandler) CreateArticle

func (h ArticleHandler) CreateArticle(w http.ResponseWriter, r *http.Request)

func (ArticleHandler) GetAllArticles

func (h ArticleHandler) GetAllArticles(w http.ResponseWriter, r *http.Request)

func (ArticleHandler) GetArticle

func (h ArticleHandler) GetArticle(w http.ResponseWriter, r *http.Request)

func (ArticleHandler) GetArticlesByUser

func (h ArticleHandler) GetArticlesByUser(w http.ResponseWriter, r *http.Request)

type AuthHandler

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

func (AuthHandler) Login

func (h AuthHandler) Login(w http.ResponseWriter, r *http.Request)

func (AuthHandler) Verify

func (h AuthHandler) Verify(w http.ResponseWriter, r *http.Request)

type AuthMiddleware

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

type MissingToken

type MissingToken struct {
	Message string `json:"message"`
}

type UserHandler

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

func (UserHandler) GetAllUsers

func (h UserHandler) GetAllUsers(w http.ResponseWriter, r *http.Request)

func (UserHandler) GetUser

func (h UserHandler) GetUser(w http.ResponseWriter, r *http.Request)

func (UserHandler) PopulateUsers

func (h UserHandler) PopulateUsers(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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