Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtensionHandler ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func CS3Client ¶
func CS3Client(c gateway.GatewayAPIClient) Option
type Options ¶
type Options struct { Logger log.Logger Config *config.Config Middleware []func(http.Handler) http.Handler CS3Client gateway.GatewayAPIClient }
Options defines the available options for this package.
type Service ¶
type Service interface {
ServeHTTP(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 WopiResponse ¶
type WopiServer ¶
type WopiServer struct {
// contains filtered or unexported fields
}
WopiServer defines implements the business logic for Service.
func (WopiServer) NotFound ¶
func (p WopiServer) NotFound(w http.ResponseWriter, r *http.Request)
func (WopiServer) OpenFile ¶
func (p WopiServer) OpenFile(w http.ResponseWriter, r *http.Request)
func (WopiServer) ServeHTTP ¶
func (p WopiServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the Service interface.
Click to show internal directories.
Click to hide internal directories.