Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleGetAll ¶
func HandleGetAll(w http.ResponseWriter, r *http.Request)
func HandleGetById ¶
func HandleGetById(w http.ResponseWriter, r *http.Request)
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func CollectionLoad ¶
func CollectionLoad(path string) (*Collection, error)
func (*Collection) AsBytes ¶
func (c *Collection) AsBytes() ([]byte, error)
func (*Collection) AsJson ¶
func (c *Collection) AsJson() map[string]interface{}
func (*Collection) Get ¶
func (c *Collection) Get(key string) interface{}
func (*Collection) GetAsList ¶
func (c *Collection) GetAsList(key string) []interface{}
func (*Collection) GetById ¶
func (c *Collection) GetById(id float64) *Collection
func (*Collection) Name ¶
func (c *Collection) Name() string
Click to show internal directories.
Click to hide internal directories.