auth

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewAuthHandler

func NewAuthHandler(
	postgresRead relational.InterfaceRead, postgresWrite relational.InterfaceWrite, appConfig *app.Config) *Handler

func (*Handler) AuthByType

func (h *Handler) AuthByType(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Auth @Description authenticate login by type! @ID authenticate login @Accept json @Produce json @Param Credentials body dto.Credentials true "auth info" @Success 200 {object} http.Response{content=string} "STATUS OK" @Failure 400 {object} http.Response{content=string} "BAD REQUEST" @Failure 500 {object} http.Response{content=string} "INTERNAL SERVER ERROR" @Router /auth/auth/authenticate [post]

func (*Handler) Config

func (h *Handler) Config(w netHTTP.ResponseWriter, _ *netHTTP.Request)

@Tags Auth @Description get actual type! @ID get type @Accept json @Produce json @Success 200 {object} http.Response{content=string} "STATUS OK" @Router /auth/auth/config [get]

func (*Handler) Options

func (h *Handler) Options(w netHTTP.ResponseWriter, _ *netHTTP.Request)

Jump to

Keyboard shortcuts

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