Documentation ¶
Index ¶
- Constants
- type Option
- type Options
- type Service
- type Webdav
- func (g Webdav) PublicThumbnail(w http.ResponseWriter, r *http.Request)
- func (g Webdav) PublicThumbnailHead(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)
Constants ¶
View Source
const (
TokenHeader = "X-Access-Token"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
type Options ¶
type Options struct { Logger log.Logger Config *config.Config Middleware []func(http.Handler) http.Handler }
Options defines the available options for this package.
type Service ¶
type Service interface { ServeHTTP(http.ResponseWriter, *http.Request) Thumbnail(http.ResponseWriter, *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.
func NewTracing ¶
NewTracing returns a service that instruments traces.
type Webdav ¶
type Webdav struct {
// contains filtered or unexported fields
}
Webdav defines implements the business logic for Service.
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) ServeHTTP ¶
func (g Webdav) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the Service interface.
func (Webdav) SpacesThumbnail ¶ added in v1.18.0
func (g Webdav) SpacesThumbnail(w http.ResponseWriter, r *http.Request)
SpacesThumbnail is the endpoint for retrieving thumbnails inside of spaces.
Click to show internal directories.
Click to hide internal directories.