login_router

package
v0.0.0-...-8d4abb2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log *slog.Logger, db *bun.DB, ctx *context.Context) http.HandlerFunc

func ReadUserIP

func ReadUserIP(r *http.Request) string

Types

type Request

type Request struct {
	GUID string `json:"guid"`
}

type Response

type Response struct {
	RefreshToken string `json:"refresh_token"`
	AccessToken  string `json:"access_token"`
}

Jump to

Keyboard shortcuts

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