You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
448 B
Go

package main
import "time"
type AuthRequest struct {
Client *AuthRequestClient
Instance string
ID string
// Indicates when the request was queued for processing
Queued time.Time
}
func (r *AuthRequest) SetId(ID string) error {
r.ID = ID
err := r.Client.PropagateID(ID)
return err
}
func (r *AuthRequest) Cancel() {
r.Client.Close()
}
func (r *AuthRequest) FulFill(t *AuthToken) error {
return r.Client.FulFillRequest(t)
}