Tweak documentation
This commit is contained in:
parent
b36b5ac3bb
commit
12037a8e1d
|
@ -16,7 +16,7 @@ type Handler struct {
|
|||
// NewHandler creates a routed tus protocol handler. This is the simplest
|
||||
// way to use tusd but may not be as configurable as you require. If you are
|
||||
// integrating this into an existing app you may like to use tusd.NewHandler
|
||||
// instead. Using tusd.NewHandler allows the tus handlers to be combined into
|
||||
// instead. Using tusd.NewUnroutedHandler allows the tus handlers to be combined into
|
||||
// your existing router (aka mux) directly. It also allows the GET and DELETE
|
||||
// endpoints to be customized. These are not part of the protocol so can be
|
||||
// changed depending on your needs.
|
||||
|
|
|
@ -67,9 +67,9 @@ type Config struct {
|
|||
Logger *log.Logger
|
||||
}
|
||||
|
||||
// UnroutedHandler exposes methods to handle requests as part of the tus protocol.
|
||||
// These are PostFile and PatchFile. It also includes GetFile and DelFile
|
||||
// however these are part of the spec. They are provided for convenience.
|
||||
// UnroutedHandler exposes methods to handle requests as part of the tus protocol,
|
||||
// such as PostFile, HeadFile, PatchFile and DelFile. In addition the GetFile method
|
||||
// is provided which is, however, not part of the specification.
|
||||
type UnroutedHandler struct {
|
||||
config Config
|
||||
dataStore DataStore
|
||||
|
|
Loading…
Reference in New Issue