Leon4gr45's picture
Upload folder using huggingface_hub (part 6)
d6f631f verified
Raw
History Blame Contribute Delete
332 Bytes
package namespacedriver
import "context"
// NamespaceDecoder gets the namespace from the request.
type NamespaceDecoder interface {
GetNamespace(ctx context.Context) (string, bool)
}
type StaticNamespaceDecoder string
func (d StaticNamespaceDecoder) GetNamespace(ctx context.Context) (string, bool) {
return string(d), true
}