Documentation
¶
Index ¶
- type Option
- type Options
- type Props
- type Service
- type Webdav
- func (g Webdav) DavPublicContext() func(next http.Handler) http.Handler
- func (g Webdav) DavUserContext() func(next http.Handler) http.Handler
- func (g Webdav) PublicThumbnail(w http.ResponseWriter, r *http.Request)
- func (g Webdav) PublicThumbnailHead(w http.ResponseWriter, r *http.Request)
- func (g Webdav) Search(w http.ResponseWriter, r *http.Request)
- func (g Webdav) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (g Webdav) SpacesThumbnail(w http.ResponseWriter, r *http.Request)
- func (g Webdav) Thumbnail(w http.ResponseWriter, r *http.Request)
- func (g Webdav) WebDAVContext() func(next http.Handler) http.Handler
- type XML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func Middleware ¶
Middleware provides a function to set the middleware option.
func TraceProvider ¶
func TraceProvider(val trace.TracerProvider) Option
TraceProvider provides a function to set the traceProvider option.
type Options ¶
type Options struct {
Logger log.Logger
Config *config.Config
Middleware []func(http.Handler) http.Handler
TraceProvider trace.TracerProvider
}
Options defines the available options for this package.
type Props ¶
Props represents properties related to a resource http://www.webdav.org/specs/rfc4918.html#ELEMENT_prop (for propfind)
type Service ¶
type Service interface {
ServeHTTP(w http.ResponseWriter, r *http.Request)
Thumbnail(w http.ResponseWriter, r *http.Request)
}
Service defines the extension handlers.
func NewInstrument ¶
NewInstrument returns a service that instruments metrics.
func NewLogging ¶
NewLogging returns a service that logs messages.
func NewService ¶
NewService returns a service implementation for Service.
type Webdav ¶
type Webdav struct {
// contains filtered or unexported fields
}
Webdav implements the business logic for Service.
func (Webdav) DavPublicContext ¶
func (Webdav) DavUserContext ¶
func (Webdav) PublicThumbnail ¶
func (g Webdav) PublicThumbnail(w http.ResponseWriter, r *http.Request)
func (Webdav) PublicThumbnailHead ¶
func (g Webdav) PublicThumbnailHead(w http.ResponseWriter, r *http.Request)
func (Webdav) Search ¶
func (g Webdav) Search(w http.ResponseWriter, r *http.Request)
Search is the endpoint for retrieving search results for REPORT requests
func (Webdav) ServeHTTP ¶
func (g Webdav) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the Service interface.
func (Webdav) SpacesThumbnail ¶
func (g Webdav) SpacesThumbnail(w http.ResponseWriter, r *http.Request)
SpacesThumbnail is the endpoint for retrieving thumbnails inside of spaces.
type XML ¶
type XML struct {
XMLName xml.Name `xml:"DAV: propfind"`
Allprop *struct{} `xml:"DAV: allprop"`
Propname *struct{} `xml:"DAV: propname"`
Prop Props `xml:"DAV: prop"`
Include Props `xml:"DAV: include"`
}
XML holds the xml representation of a propfind http://www.webdav.org/specs/rfc4918.html#ELEMENT_propfind