auth

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 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 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 auth.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 /api/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=auth.ConfigAuth{}} "STATUS OK" @Router /api/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