mirror of
https://github.com/1f349/lavender.git
synced 2025-02-23 22:25:08 +00:00
20 lines
424 B
Go
20 lines
424 B
Go
|
package authContext
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
type CallbackContext interface {
|
||
|
TemplateContext
|
||
|
HandleCallback(rw http.ResponseWriter, req *http.Request)
|
||
|
__callbackContext()
|
||
|
}
|
||
|
|
||
|
var _ CallbackContext = &BaseCallbackContext{}
|
||
|
|
||
|
type BaseCallbackContext struct {
|
||
|
BaseTemplateContext
|
||
|
}
|
||
|
|
||
|
func (b *BaseCallbackContext) HandleCallback(rw http.ResponseWriter, req *http.Request) {}
|
||
|
|
||
|
func (b *BaseCallbackContext) __callbackContext() {}
|