Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAbsoluteURI ¶ added in v0.10.0
IsAbsoluteURI checks if the given uri is absolute or not.
Types ¶
type AbsoluteWebPathProvider ¶
type AbsoluteWebPathProvider struct {
// contains filtered or unexported fields
}
func (*AbsoluteWebPathProvider) Base ¶
func (webPathProvider *AbsoluteWebPathProvider) Base() route.Route
func (*AbsoluteWebPathProvider) Path ¶
func (webPathProvider *AbsoluteWebPathProvider) Path(itemPath string) string
Get the absolute path for the supplied item
type PatherFactory ¶
type PatherFactory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory(logger logger.Logger, repository dataaccess.Repository) *PatherFactory
type RelativeWebPathProvider ¶
type RelativeWebPathProvider struct {
// contains filtered or unexported fields
}
func (*RelativeWebPathProvider) Base ¶
func (webPathProvider *RelativeWebPathProvider) Base() route.Route
func (*RelativeWebPathProvider) Path ¶
func (webPathProvider *RelativeWebPathProvider) Path(itemPath string) string
Get the path relative for the supplied item
type WebPathProvider ¶
type WebPathProvider struct {
// contains filtered or unexported fields
}
func NewWebPathProvider ¶
func NewWebPathProvider(patherFactory paths.PatherFactory, basePath, tagPathPrefix string) WebPathProvider
func (*WebPathProvider) AbsolutePather ¶
func (provider *WebPathProvider) AbsolutePather(prefix string) paths.Pather
func (*WebPathProvider) ItemPather ¶
func (provider *WebPathProvider) ItemPather() paths.Pather
func (*WebPathProvider) RelativePather ¶
func (provider *WebPathProvider) RelativePather(baseRoute route.Route) paths.Pather
func (*WebPathProvider) TagPather ¶
func (provider *WebPathProvider) TagPather() paths.Pather
Click to show internal directories.
Click to hide internal directories.