mirror of
https://github.com/1f349/lavender.git
synced 2025-02-23 14:15:08 +00:00
15 lines
241 B
Go
15 lines
241 B
Go
package auth
|
|
|
|
import "fmt"
|
|
|
|
type RedirectError struct {
|
|
Target string
|
|
Code int
|
|
}
|
|
|
|
func (e RedirectError) TargetUrl() string { return e.Target }
|
|
|
|
func (e RedirectError) Error() string {
|
|
return fmt.Sprintf("redirect to '%s'", e.Target)
|
|
}
|