handlers

package
v0.0.0-...-91b8838 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package handlers provides handlerfuncs

Package handlers provides handlerfuncs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandlers

type AuthHandlers interface {
	// SignUp(w http.ResponseWriter, r *http.Request)
	SignIn(w http.ResponseWriter, r *http.Request)
	UpdateUser(w http.ResponseWriter, r *http.Request)
	GetUser(w http.ResponseWriter, r *http.Request)
	GetUsers(w http.ResponseWriter, r *http.Request)
	DeleteUser(w http.ResponseWriter, r *http.Request)
	CheckToken(w http.ResponseWriter, r *http.Request)
}

AuthHandlers interface defining HandlerFuncs

func NewAuthHandlers

func NewAuthHandlers(authSvcClient pb.AuthServiceClient) AuthHandlers

NewAuthHandlers takes an authclient.AuthSvcClient and returns an AuthHandlers

type ForumHandlers

type ForumHandlers interface {
	CreateForum(w http.ResponseWriter, r *http.Request)
	CreateThread(w http.ResponseWriter, r *http.Request)
	CreatePost(w http.ResponseWriter, r *http.Request)
	GetForum(w http.ResponseWriter, r *http.Request)
	GetThread(w http.ResponseWriter, r *http.Request)
	GetPost(w http.ResponseWriter, r *http.Request)
	GetForums(w http.ResponseWriter, r *http.Request)
	GetThreads(w http.ResponseWriter, r *http.Request)
	GetPosts(w http.ResponseWriter, r *http.Request)
	UpdateForum(w http.ResponseWriter, r *http.Request)
	UpdateThread(w http.ResponseWriter, r *http.Request)
	UpdatePost(w http.ResponseWriter, r *http.Request)
	DeleteForum(w http.ResponseWriter, r *http.Request)
	DeleteThread(w http.ResponseWriter, r *http.Request)
	DeletePost(w http.ResponseWriter, r *http.Request)
	SearchForums(w http.ResponseWriter, r *http.Request)
}

ForumHandlers interface defining HandlerFuncs

func NewForumHandlers

func NewForumHandlers(forumSvcClient pb.ForumServiceClient) ForumHandlers

NewForumHandlers takes a pb.ForumSvcClient and returns a ForumHandlers

type PlaceHandlers

type PlaceHandlers interface {
	CreatePlace(w http.ResponseWriter, r *http.Request)
	GetPlace(w http.ResponseWriter, r *http.Request)
	GetPlaces(w http.ResponseWriter, r *http.Request)
	UpdatePlace(w http.ResponseWriter, r *http.Request)
	DeletePlace(w http.ResponseWriter, r *http.Request)
}

PlaceHandlers is the interface defining the place handlerfuncs

func NewPlaceHandlers

func NewPlaceHandlers(placeSvcClient pb.PlaceServiceClient) PlaceHandlers

NewPlaceHandlers takes a pb.PlaceServiceClient and returns a PlaceHandlers

Jump to

Keyboard shortcuts

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