web

package
v0.0.0-...-2847b59 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
	AuthService domain.AuthService
	Secret      string
	UserClient  pb.UserClient
}

Controller for Issue model

func (AuthController) Login

func (AuthController) Register

func (c AuthController) Register(w http.ResponseWriter, r *http.Request)

func (AuthController) Verify

func (c AuthController) Verify(w http.ResponseWriter, r *http.Request)

type JWTData

type JWTData struct {
	jwt.StandardClaims
	CustomClaims map[string]string `json:"custom,omitempty"`
}

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
}

type UserController

type UserController struct {
	UserService domain.UserService
}

Controller for User model

func (UserController) Delete

func (c UserController) Delete(w http.ResponseWriter, r *http.Request)

func (UserController) List

func (UserController) Show

func (UserController) SubmitNewUser

func (c UserController) SubmitNewUser(ctx context.Context, r *pb.NewUserRequest) (*pb.NewUserResponse, error)

Jump to

Keyboard shortcuts

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