approval

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTPManager

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

func NewOTPManager

func NewOTPManager(nowFn func() time.Time) *OTPManager

func (*OTPManager) Consume

func (m *OTPManager) Consume(chatID string, text string) bool

func (*OTPManager) HasPending

func (m *OTPManager) HasPending(chatID string) bool

func (*OTPManager) Request

func (m *OTPManager) Request(ctx context.Context, chatID string, timeout time.Duration) (string, error)

Jump to

Keyboard shortcuts

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