web

package
v0.0.0-...-d736814 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 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
	EventsProducer sarama.SyncProducer
	Secret         string
}

Controller for Auth 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) List

Jump to

Keyboard shortcuts

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