Documentation ¶
Index ¶
- func ErrInvalidMapper(name string) error
- func ErrMapConfigSetup(message string) error
- func ErrOperationNotSupported(operation string) error
- func Sanitize(m Mapper, pair *types.PathUrlPair)
- type Mapper
- type MapperConfigurer
- type MapperIdentityProvider
- type MapperManager
- func (m *MapperManager) DeleteUrl(path string) error
- func (m *MapperManager) GetUrl(path string, incrementCounter bool) (*types.PathUrlPair, error)
- func (m *MapperManager) ListUrls() (types.PathUrlPairList, error)
- func (m *MapperManager) PutUrl(pair *types.PathUrlPair) (*types.PathUrlPair, error)
- func (m *MapperManager) Teardown() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrInvalidMapper ¶
func ErrMapConfigSetup ¶
func Sanitize ¶
func Sanitize(m Mapper, pair *types.PathUrlPair)
Types ¶
type Mapper ¶
type Mapper interface { MapperIdentityProvider Readonly() bool GetUrl(path string) (*types.PathUrlPair, error) ListUrls() (types.PathUrlPairList, error) PutUrl(pair *types.PathUrlPair) (*types.PathUrlPair, error) DeleteUrl(path string) error Teardown() error }
type MapperConfigurer ¶
type MapperConfigurer interface { MapperIdentityProvider GetMapper() (Mapper, error) Singleton() bool }
type MapperIdentityProvider ¶
type MapperManager ¶
type MapperManager struct {
// contains filtered or unexported fields
}
func NewMapperManager ¶
func NewMapperManager(persistorName string, mapConfigs []MapperConfigurer) (*MapperManager, error)
func (*MapperManager) DeleteUrl ¶
func (m *MapperManager) DeleteUrl(path string) error
func (*MapperManager) GetUrl ¶
func (m *MapperManager) GetUrl(path string, incrementCounter bool) (*types.PathUrlPair, error)
func (*MapperManager) ListUrls ¶
func (m *MapperManager) ListUrls() (types.PathUrlPairList, error)
func (*MapperManager) PutUrl ¶
func (m *MapperManager) PutUrl(pair *types.PathUrlPair) (*types.PathUrlPair, error)
func (*MapperManager) Teardown ¶
func (m *MapperManager) Teardown() error
Click to show internal directories.
Click to hide internal directories.