Documentation ¶
Index ¶
- func SplitWithoutEmpty(req string, sep rune) []string
- type Resources
- func (c *Resources) Add(name string, tp string, content []byte) (string, error)
- func (c *Resources) Get(id string) (*common_interfaces.ResourcesItem, error)
- func (c *Resources) List(tp string, filter string, offset int, maxCount int) common_interfaces.ResourcesInfo
- func (c *Resources) Remove(id string) error
- func (c *Resources) Rename(id string, newName string) error
- func (c *Resources) Set(id string, thumbnail []byte, content []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitWithoutEmpty ¶
Types ¶
type Resources ¶
type Resources struct {
// contains filtered or unexported fields
}
func NewResources ¶
func NewResources() *Resources
func (*Resources) Get ¶
func (c *Resources) Get(id string) (*common_interfaces.ResourcesItem, error)
func (*Resources) List ¶
func (c *Resources) List(tp string, filter string, offset int, maxCount int) common_interfaces.ResourcesInfo
Click to show internal directories.
Click to hide internal directories.