Documentation ¶
Index ¶
- func HandleAdminItem(w http.ResponseWriter, r *http.Request)
- func HandleAdminLogin(w http.ResponseWriter, r *http.Request)
- func HandleAdminUpload(w http.ResponseWriter, r *http.Request)
- func HandleHat(w http.ResponseWriter, r *http.Request)
- func HandleIndex(w http.ResponseWriter, r *http.Request)
- func InitAdmin(prefix string)
- func InitBriabby(prefix string)
- type FileInfo
- type FileSave
- type HatDataSet
- type IndexDataSet
- type ProtoItem
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAdminItem ¶
func HandleAdminItem(w http.ResponseWriter, r *http.Request)
func HandleAdminLogin ¶
func HandleAdminLogin(w http.ResponseWriter, r *http.Request)
func HandleAdminUpload ¶
func HandleAdminUpload(w http.ResponseWriter, r *http.Request)
func HandleIndex ¶
func HandleIndex(w http.ResponseWriter, r *http.Request)
func InitBriabby ¶
func InitBriabby(prefix string)
Types ¶
type FileInfo ¶
type FileInfo struct { Key string `json:"-"` Url string `json:"url,omitempty"` ThumbnailUrl string `json:"thumbnail_url,omitempty"` Name string `json:"name"` Type string `json:"type"` Size int64 `json:"size"` Error string `json:"error,omitempty"` DeleteUrl string `json:"delete_url,omitempty"` DeleteType string `json:"delete_type,omitempty"` }
FileInfo describes a file that has been uploaded.
type FileSave ¶
type FileSave struct {
// contains filtered or unexported fields
}
func NewFileSave ¶
type HatDataSet ¶
type IndexDataSet ¶
type IndexDataSet struct { }
type ProtoItem ¶
type ProtoItem struct { ID string `bson:"_id"` Name string `bson:"name"` Promotion int `bson:"promotion"` ImageSmall string `bson:"smallimage"` ImageBig string `bson:"bigimage"` Desc string `bson:"desc"` Price []string `bson:"price"` PaypalBtn string `bson:"paypalbtn"` Category string `bson:"category"` }
ProtoItem indicate an item that saved in db
Click to show internal directories.
Click to hide internal directories.