endpoint

package
v0.0.0-...-99cece9 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeLoginEndpoint

func MakeLoginEndpoint(userService service.UserService) endpoint.Endpoint

func MakeRegisterEndpoint

func MakeRegisterEndpoint(userService service.UserService) endpoint.Endpoint

Types

type LoginRequest

type LoginRequest struct {
	Email    string
	Password string
}

type LoginResponse

type LoginResponse struct {
	UserInfo *service.UserInfoDTO `json:"user_info"`
}

type RegisterRequest

type RegisterRequest struct {
	Username string
	Email    string
	Password string
}

type RegisterResponse

type RegisterResponse struct {
	UserInfo *service.UserInfoDTO `json:"user_info"`
}

type UserEndpoints

type UserEndpoints struct {
	RegisterEndpoint endpoint.Endpoint
	LoginEndpoint    endpoint.Endpoint
}

Jump to

Keyboard shortcuts

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