confirm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 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 IssuedToken

type IssuedToken struct {
	Token     string
	ExpiresAt time.Time
}

type Manager

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

func NewManager

func NewManager(ttl time.Duration) *Manager

func (*Manager) Consume

func (m *Manager) Consume(token string, request Request) error

func (*Manager) Issue

func (m *Manager) Issue(request Request) (IssuedToken, error)

func (*Manager) PendingCount

func (m *Manager) PendingCount() int

func (*Manager) TTL

func (m *Manager) TTL() time.Duration

type Request

type Request struct {
	ToolName string
	Database string
	Mode     string
	SQLHash  string
}

Jump to

Keyboard shortcuts

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