handlers

package
v0.0.0-...-6f65a32 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	DB *gorm.DB
}

func (*Server) CreatePost

func (server *Server) CreatePost(w http.ResponseWriter, r *http.Request)

func (*Server) CreateUser

func (server *Server) CreateUser(w http.ResponseWriter, r *http.Request)

func (*Server) DeletePost

func (server *Server) DeletePost(w http.ResponseWriter, r *http.Request)

func (*Server) DeleteUser

func (server *Server) DeleteUser(w http.ResponseWriter, r *http.Request)

func (*Server) GetPosts

func (server *Server) GetPosts(w http.ResponseWriter, r *http.Request)

func (*Server) GetUser

func (server *Server) GetUser(w http.ResponseWriter, r *http.Request)

func (*Server) GetUsers

func (server *Server) GetUsers(w http.ResponseWriter, r *http.Request)

func (*Server) Initialize

func (server *Server) Initialize(Dbdriver, DbUser, DbPassword, DbPort, DbHost, DbName string)

func (*Server) Login

func (server *Server) Login(w http.ResponseWriter, r *http.Request)

func (*Server) SignIn

func (server *Server) SignIn(email, password string) (string, error)

func (*Server) UpdatePost

func (server *Server) UpdatePost(w http.ResponseWriter, r *http.Request)

func (*Server) UpdateUser

func (server *Server) UpdateUser(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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