utils

package
v0.0.0-...-db47865 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONResponse

func JSONResponse(w http.ResponseWriter, d interface{}, statusCode int)

JsonResponse outputs tobject as a 200 HTTP JSON encoded response

Types

type Utils

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

func New

func New(config *models.Config) *Utils

func (*Utils) GetAllowedMFAs

func (u *Utils) GetAllowedMFAs() []string

func (*Utils) GetClientIP

func (u *Utils) GetClientIP(r *http.Request) string

Jump to

Keyboard shortcuts

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