webpaths

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2017 License: BSD-3-Clause Imports: 6 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAbsoluteURI added in v0.10.0

func IsAbsoluteURI(uri string) bool

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

func (*PatherFactory) Absolute

func (factory *PatherFactory) Absolute(prefix string) paths.Pather

func (*PatherFactory) Relative

func (factory *PatherFactory) Relative(baseRoute route.Route) paths.Pather

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL