auth

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

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

Handlers 封装认证域 HTTP handlers。

func New

func New(
	api *handlershared.API,
	auth *authsvc.Service,
	usage tokenUsageStore,
	subscription subscriptionStore,
) *Handlers

New 创建认证域 handlers。

func (*Handlers) HandleAuthLogin

func (h *Handlers) HandleAuthLogin(writer http.ResponseWriter, request *http.Request)

HandleAuthLogin 执行登录。

func (*Handlers) HandleAuthLogout

func (h *Handlers) HandleAuthLogout(writer http.ResponseWriter, request *http.Request)

HandleAuthLogout 执行登出。

func (*Handlers) HandleAuthStatus

func (h *Handlers) HandleAuthStatus(writer http.ResponseWriter, request *http.Request)

HandleAuthStatus 返回当前认证状态。

func (*Handlers) HandleChangePassword

func (h *Handlers) HandleChangePassword(writer http.ResponseWriter, request *http.Request)

HandleChangePassword 修改当前登录用户密码。

func (*Handlers) HandlePersonalProfile

func (h *Handlers) HandlePersonalProfile(writer http.ResponseWriter, request *http.Request)

HandlePersonalProfile 返回当前用户的个人设置资料。

func (*Handlers) HandleUpdatePersonalProfile

func (h *Handlers) HandleUpdatePersonalProfile(writer http.ResponseWriter, request *http.Request)

HandleUpdatePersonalProfile 更新当前用户的个人资料。

Jump to

Keyboard shortcuts

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