Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTypeFromID ¶
func RegisterManager ¶
RegisterManager registers a resource manager for the specified type
Types ¶
type Config ¶
type Config struct { ID string `json:"id"` Compressed bool `json:"compressed"` Data json.RawMessage `json:"data"` }
type Manager ¶
type Manager interface { // LoadResources tells the manager to load the specified resource set LoadResource(config *Config) error // GetResource get the resource that corresponds to the specified id GetResource(id string) interface{} }
ResourceManager interface
func GetManager ¶
GetManager gets the manager for the specified resource type
type ResourcesConfig ¶
type ResourcesConfig struct {
Resources []*Config `json:"resources"`
}
Click to show internal directories.
Click to hide internal directories.