Documentation ¶
Index ¶
- Constants
- func ParseURLPath(p string) (string, string, error)
- func Serve(ctx context.Context, cfg *cli.CliConfig) error
- func ServeOptions(w http.ResponseWriter)
- func WriteError(w http.ResponseWriter, err error)
- type ContentServerMarshaler
- type Entry
- type Error
- type Handler
- func (h *Handler) EntryForPath(ctx context.Context, conn *grpc.ClientConn, p string) (*Entry, error)
- func (h *Handler) ListingForId(ctx context.Context, conn *grpc.ClientConn, id uint64) (Listing, error)
- func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (h *Handler) VhostListing() Listing
- type HtmlMarshaler
- type Listing
- type Marshaler
- type PropStatMarshaler
Constants ¶
View Source
const MethodPropFind = "PROPFIND"
View Source
const StatusOk = "HTTP/1.1 200 OK"
Variables ¶
This section is empty.
Functions ¶
func ServeOptions ¶
func ServeOptions(w http.ResponseWriter)
func WriteError ¶
func WriteError(w http.ResponseWriter, err error)
Types ¶
type ContentServerMarshaler ¶
type ContentServerMarshaler struct { OrigReq *http.Request CInfo *cli.ConnectionInfo }
func (ContentServerMarshaler) WriteResponse ¶
func (m ContentServerMarshaler) WriteResponse(w http.ResponseWriter, basepath string, entry *Entry, listing Listing)
type Entry ¶
func INodeViewToEntry ¶
type Error ¶
func ErrorFromGrpc ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) EntryForPath ¶
func (*Handler) ListingForId ¶
func (*Handler) VhostListing ¶
type HtmlMarshaler ¶
type HtmlMarshaler struct{}
func (HtmlMarshaler) WriteResponse ¶
func (m HtmlMarshaler) WriteResponse(w http.ResponseWriter, basepath string, entry *Entry, listing Listing)
type Marshaler ¶
type Marshaler interface {
WriteResponse(w http.ResponseWriter, basepath string, entry *Entry, listing Listing)
}
type PropStatMarshaler ¶
type PropStatMarshaler struct{}
func (PropStatMarshaler) WriteResponse ¶
func (m PropStatMarshaler) WriteResponse(w http.ResponseWriter, basepath string, entry *Entry, listing Listing)
Click to show internal directories.
Click to hide internal directories.