Documentation
¶
Index ¶
- type EmbeddedResource
- type FS
- type Resource
- type ResourcingEndpoint
- type ResourcingManager
- func (rscngmngr *ResourcingManager) Close() (err error)
- func (rscngmngr *ResourcingManager) EndpointResource(path string) (epntrs interface{})
- func (rscngmngr *ResourcingManager) EndpointViaPath(path string) (rsngendpt *ResourcingEndpoint)
- func (rscngmngr *ResourcingManager) EndpointViaRootPath(rootpath string) (rsngendpt *ResourcingEndpoint)
- func (rscngmngr *ResourcingManager) FS() *fsutils.FSUtils
- func (rscngmngr *ResourcingManager) FindRS(path string) (rs io.ReadCloser, modified time.Time, err error)
- func (rscngmngr *ResourcingManager) FindRSString(path string) (s string, modified time.Time, err error)
- func (rscngmngr *ResourcingManager) IsRegisteredPath(path string) (exists bool)
- func (rscngmngr *ResourcingManager) IsRegisteredRootPath(rootpath string) (exists bool)
- func (rscngmngr *ResourcingManager) RegisterEndpoint(path string, rootpath string, prms ...interface{})
- func (rscngmngr *ResourcingManager) RegisterEndpoints(args ...interface{})
- func (rscngmngr *ResourcingManager) RegisteredPaths() (paths []string)
- func (rscngmngr *ResourcingManager) RegisteredRootPaths() (paths []string)
- func (rscngmngr *ResourcingManager) RemovePathResource(path string) (rmvd bool)
- func (rscngmngr *ResourcingManager) UnregisterPath(path string) (rmvd bool)
- func (rscngmngr *ResourcingManager) UnregisterPaths(path ...string)
- func (rscngmngr *ResourcingManager) UnregisterRootPath(epntpath string) (rmvd bool)
- func (rscngmngr *ResourcingManager) UnregisterRootPaths(epntpath ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmbeddedResource ¶
func NewEmbeddedResource ¶
func NewEmbeddedResource(rscngendpnt *ResourcingEndpoint) (embdrs *EmbeddedResource)
func (*EmbeddedResource) Clear ¶
func (embdrs *EmbeddedResource) Clear()
func (*EmbeddedResource) Close ¶
func (embdrs *EmbeddedResource) Close() (err error)
func (*EmbeddedResource) Name ¶
func (embdrs *EmbeddedResource) Name() string
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource - struct
type ResourcingEndpoint ¶
type ResourcingEndpoint struct {
// contains filtered or unexported fields
}
ResourcingEndpoint - struct
func (*ResourcingEndpoint) FS ¶
func (rscngepnt *ResourcingEndpoint) FS() *fsutils.FSUtils
FS return fsutils.FSUtils implementation for *ResourcingEndPoint
func (*ResourcingEndpoint) RemoveResource ¶
func (rscngepnt *ResourcingEndpoint) RemoveResource(path string) (rmvd bool)
RemoveResource - remove inline resource - true if found and removed and false if not exists
func (*ResourcingEndpoint) Resource ¶
func (rscngepnt *ResourcingEndpoint) Resource(path string) (rs interface{})
Resource - return mapped resource interface{} by path
type ResourcingManager ¶
type ResourcingManager struct {
// contains filtered or unexported fields
}
ResourcingManager - struct
func NewResourcingManager ¶
func NewResourcingManager() (rscngmngr *ResourcingManager)
NewResourcingManager - instance
func (*ResourcingManager) Close ¶
func (rscngmngr *ResourcingManager) Close() (err error)
Close *ResouringManager
func (*ResourcingManager) EndpointResource ¶
func (rscngmngr *ResourcingManager) EndpointResource(path string) (epntrs interface{})
EndpointResource - Endpoint embedded resource via path
func (*ResourcingManager) EndpointViaPath ¶
func (rscngmngr *ResourcingManager) EndpointViaPath(path string) (rsngendpt *ResourcingEndpoint)
EndpointViaPath return ResourcingEndpoint via path
func (*ResourcingManager) EndpointViaRootPath ¶
func (rscngmngr *ResourcingManager) EndpointViaRootPath(rootpath string) (rsngendpt *ResourcingEndpoint)
EndpointViaRootPath return ResourcingEndpoint via root path
func (*ResourcingManager) FS ¶
func (rscngmngr *ResourcingManager) FS() *fsutils.FSUtils
FS return fsutils.FSUtils implementation for *ResourcingManager
func (*ResourcingManager) FindRS ¶
func (rscngmngr *ResourcingManager) FindRS(path string) (rs io.ReadCloser, modified time.Time, err error)
FindRS - find Resource
func (*ResourcingManager) FindRSString ¶
func (rscngmngr *ResourcingManager) FindRSString(path string) (s string, modified time.Time, err error)
FindRSString - find Resource
func (*ResourcingManager) IsRegisteredPath ¶
func (rscngmngr *ResourcingManager) IsRegisteredPath(path string) (exists bool)
IsRegisteredPath return true indicating if a path is registered
func (*ResourcingManager) IsRegisteredRootPath ¶
func (rscngmngr *ResourcingManager) IsRegisteredRootPath(rootpath string) (exists bool)
IsRegisteredRootPath return true indicating if a rootpath is registered
func (*ResourcingManager) RegisterEndpoint ¶
func (rscngmngr *ResourcingManager) RegisterEndpoint(path string, rootpath string, prms ...interface{})
RegisterEndpoint - register ResourcingEndPoint
func (*ResourcingManager) RegisterEndpoints ¶
func (rscngmngr *ResourcingManager) RegisterEndpoints(args ...interface{})
RegisterEndpoints register multiple Endpoints
func (*ResourcingManager) RegisteredPaths ¶
func (rscngmngr *ResourcingManager) RegisteredPaths() (paths []string)
RegisteredPaths return registered paths
func (*ResourcingManager) RegisteredRootPaths ¶
func (rscngmngr *ResourcingManager) RegisteredRootPaths() (paths []string)
RegisteredRootPaths return registered rootpaths
func (*ResourcingManager) RemovePathResource ¶
func (rscngmngr *ResourcingManager) RemovePathResource(path string) (rmvd bool)
RemovePathResource - Remove Endpoint Resource via path
func (*ResourcingManager) UnregisterPath ¶
func (rscngmngr *ResourcingManager) UnregisterPath(path string) (rmvd bool)
UnregisterPath - register path string
func (*ResourcingManager) UnregisterPaths ¶
func (rscngmngr *ResourcingManager) UnregisterPaths(path ...string)
UnregisterPaths unregister multiple paths
func (*ResourcingManager) UnregisterRootPath ¶
func (rscngmngr *ResourcingManager) UnregisterRootPath(epntpath string) (rmvd bool)
UnregisterRootPath unregister RootPath and dispose the ResourcingEndPoint
func (*ResourcingManager) UnregisterRootPaths ¶
func (rscngmngr *ResourcingManager) UnregisterRootPaths(epntpath ...string)
UnregisterRootPaths unregister multiple RootPaths and their ResourcingEndPoints