handler

package
v0.0.0-...-1fccb44 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package handler handle requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserServer

type UserServer struct {
	Userservice service.UserService
}

UserServer contain all needed dependencies.

func (UserServer) CreateUser

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

CreateUser create a new user.

func (UserServer) LoginUser

func (server UserServer) LoginUser(w http.ResponseWriter, r *http.Request)

LoginUser create link if user exist.

Jump to

Keyboard shortcuts

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