twofa

package
v0.10.13 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Register registers the models: TOTPBind, TOTPCheck, TOTPConfirm, TOTPDevice, TOTPStatus, TOTPUnbind and TOTPVerify.

Modules, Payload and Result:

  • TOTPBind, TOTPBindRsp
  • TOTPCheck, TOTPCheckReq, TOTPCheckRsp
  • TOTPConfirm, TOTPConfirmReq, TOTPConfirmRsp
  • TOTPDevice
  • TOTPStatus, TOTPStatusRsp
  • TOTPUnbind, TOTPUnbindReq, TOTPUnbindRsp
  • TOTPVerify, TOTPVerifyReq, TOTPVerifyRsp

Routes

  • POST /api/2fa/totp/bind
  • POST /api/2fa/totp/check
  • POST /api/2fa/totp/confirm
  • POST /api/2fa/totp/status
  • POST /api/2fa/totp/unbind
  • POST /api/2fa/totp/verify
  • POST /api/2fa/totp/devices
  • DELETE /api/2fa/totp/devices/:id
  • PUT /api/2fa/totp/devices/:id
  • PATCH /api/2fa/totp/devices/:id
  • GET /api/2fa/totp/devices
  • GET /api/2fa/totp/devices/:id

Types

type TOTPBind

type TOTPBind = modeltwofa.TOTPBind

type TOTPBindModule

type TOTPBindModule struct{}

func (*TOTPBindModule) Param

func (*TOTPBindModule) Param() string

func (*TOTPBindModule) Pub

func (*TOTPBindModule) Pub() bool

func (*TOTPBindModule) Route

func (*TOTPBindModule) Route() string

func (*TOTPBindModule) Service

type TOTPBindRsp

type TOTPBindRsp = modeltwofa.TOTPBindRsp

type TOTPBindService

type TOTPBindService = servicetwofa.TOTPBindService

type TOTPCheck

type TOTPCheck = modeltwofa.TOTPCheck

type TOTPCheckModule

type TOTPCheckModule struct{}

func (*TOTPCheckModule) Param

func (*TOTPCheckModule) Param() string

func (*TOTPCheckModule) Pub

func (*TOTPCheckModule) Pub() bool

func (*TOTPCheckModule) Route

func (*TOTPCheckModule) Route() string

func (*TOTPCheckModule) Service

type TOTPCheckReq

type TOTPCheckReq = modeltwofa.TOTPCheckReq

type TOTPCheckRsp

type TOTPCheckRsp = modeltwofa.TOTPCheckRsp

type TOTPCheckService

type TOTPCheckService = servicetwofa.TOTPCheckService

type TOTPConfirm

type TOTPConfirm = modeltwofa.TOTPConfirm

type TOTPConfirmModule

type TOTPConfirmModule struct{}

func (*TOTPConfirmModule) Param

func (*TOTPConfirmModule) Param() string

func (*TOTPConfirmModule) Pub

func (*TOTPConfirmModule) Pub() bool

func (*TOTPConfirmModule) Route

func (*TOTPConfirmModule) Route() string

func (*TOTPConfirmModule) Service

type TOTPConfirmReq

type TOTPConfirmReq = modeltwofa.TOTPConfirmReq

type TOTPConfirmRsp

type TOTPConfirmRsp = modeltwofa.TOTPConfirmRsp

type TOTPConfirmService

type TOTPConfirmService = servicetwofa.TOTPConfirmService

type TOTPDevice

type TOTPDevice = modeltwofa.TOTPDevice

type TOTPDeviceModule

type TOTPDeviceModule struct{}

func (*TOTPDeviceModule) Param

func (*TOTPDeviceModule) Param() string

func (*TOTPDeviceModule) Pub

func (*TOTPDeviceModule) Pub() bool

func (*TOTPDeviceModule) Route

func (*TOTPDeviceModule) Route() string

func (*TOTPDeviceModule) Service

type TOTPDeviceService

type TOTPDeviceService = servicetwofa.TOTPDeviceService

type TOTPStatus

type TOTPStatus = modeltwofa.TOTPStatus

type TOTPStatusModule

type TOTPStatusModule struct{}

func (*TOTPStatusModule) Param

func (*TOTPStatusModule) Param() string

func (*TOTPStatusModule) Pub

func (*TOTPStatusModule) Pub() bool

func (*TOTPStatusModule) Route

func (*TOTPStatusModule) Route() string

func (*TOTPStatusModule) Service

type TOTPStatusRsp

type TOTPStatusRsp = modeltwofa.TOTPStatusRsp

type TOTPStatusService

type TOTPStatusService = servicetwofa.TOTPStatusService

type TOTPUnbind

type TOTPUnbind = modeltwofa.TOTPUnbind

type TOTPUnbindModule

type TOTPUnbindModule struct{}

func (*TOTPUnbindModule) Param

func (*TOTPUnbindModule) Param() string

func (*TOTPUnbindModule) Pub

func (*TOTPUnbindModule) Pub() bool

func (*TOTPUnbindModule) Route

func (*TOTPUnbindModule) Route() string

func (*TOTPUnbindModule) Service

type TOTPUnbindReq

type TOTPUnbindReq = modeltwofa.TOTPUnbindReq

type TOTPUnbindRsp

type TOTPUnbindRsp = modeltwofa.TOTPUnbindRsp

type TOTPUnbindService

type TOTPUnbindService = servicetwofa.TOTPUnbindService

type TOTPVerify

type TOTPVerify = modeltwofa.TOTPVerify

type TOTPVerifyModule

type TOTPVerifyModule struct{}

func (*TOTPVerifyModule) Param

func (*TOTPVerifyModule) Param() string

func (*TOTPVerifyModule) Pub

func (*TOTPVerifyModule) Pub() bool

func (*TOTPVerifyModule) Route

func (*TOTPVerifyModule) Route() string

func (*TOTPVerifyModule) Service

type TOTPVerifyReq

type TOTPVerifyReq = modeltwofa.TOTPVerifyReq

type TOTPVerifyRsp

type TOTPVerifyRsp = modeltwofa.TOTPVerifyRsp

type TOTPVerifyService

type TOTPVerifyService = servicetwofa.TOTPVerifyService

Jump to

Keyboard shortcuts

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