resources

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitWithoutEmpty

func SplitWithoutEmpty(req string, sep rune) []string

Types

type Resources

type Resources struct {
	// contains filtered or unexported fields
}

func NewResources

func NewResources() *Resources

func (*Resources) Add

func (c *Resources) Add(name string, tp string, content []byte) (string, error)

func (*Resources) Get

func (*Resources) List

func (c *Resources) List(tp string, filter string, offset int, maxCount int) common_interfaces.ResourcesInfo

func (*Resources) Remove

func (c *Resources) Remove(id string) error

func (*Resources) Rename

func (c *Resources) Rename(id string, newName string) error

func (*Resources) Set

func (c *Resources) Set(id string, thumbnail []byte, content []byte) error

Jump to

Keyboard shortcuts

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