Documentation ¶
Overview ¶
Package issueapi implements the API handler for taking a code request, assigning an OTP, saving it to the database and returning the result. This is invoked over AJAX from the Web frontend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, config config.IssueAPIConfig, db *database.Database, h *render.Renderer) *Controller
New creates a new IssueAPI controller.
func (*Controller) HandleIssue ¶
func (c *Controller) HandleIssue() http.Handler
Click to show internal directories.
Click to hide internal directories.