mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
13 lines
246 B
Go
13 lines
246 B
Go
|
package session
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"golang.org/x/net/context"
|
||
|
)
|
||
|
|
||
|
// Backend abstracts an session receiver from an http request.
|
||
|
type Backend interface {
|
||
|
HandleHTTPRequest(ctx context.Context, w http.ResponseWriter, r *http.Request) error
|
||
|
}
|