Documentation ¶
Index ¶
- func InitDB(ip string, port string)
- func LoginRequired(ignore ...string) negroni.HandlerFunc
- func SendJsonPost(jsonBytes []byte, url string) ([]byte, error)
- func Server()
- func SetCurrentUser(r *http.Request, u *User)
- type CreateResult
- type File
- type FileFindStruct
- type FileInfos
- type FileStruct
- type JsonUser
- type LoginResult
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoginRequired ¶
func LoginRequired(ignore ...string) negroni.HandlerFunc
func SetCurrentUser ¶
Types ¶
type CreateResult ¶
type FileFindStruct ¶
type FileStruct ¶
type LoginResult ¶
type User ¶
type User struct { Uid string `json:"uid" bson:"uid"` Name string `json:"name" bson:"name"` Email string `json:"email" bson:"email"` AvataUrl string `json:"avatarurl" bson:"avataurl"` Password string `json:"password" bson:"password"` Token string `json:"token" bson:"token"` Expired time.Time `json:"expired" bson:"expired"` }
func GetCurrentUser ¶
Click to show internal directories.
Click to hide internal directories.