Documentation ¶
Index ¶
- Constants
- func ActiveSubscriber(c *gin.Context)
- func AdminIndex(c *gin.Context)
- func ArchiveGet(c *gin.Context)
- func AuthGet(c *gin.Context)
- func Backup() (err error)
- func BackupPost(c *gin.Context)
- func BindEmail(c *gin.Context)
- func CaptchaGet(context *gin.Context)
- func CommentDelete(c *gin.Context)
- func CommentPost(c *gin.Context)
- func CommentRead(c *gin.Context)
- func CommentReadAll(c *gin.Context)
- func CreateXMLSitemap()
- func GetUnSubcribeUrl(subscriber *models.Subscriber) (string, error)
- func Handle404(c *gin.Context)
- func HandleMessage(c *gin.Context, message string)
- func IndexGet(c *gin.Context)
- func LinkCreate(c *gin.Context)
- func LinkDelete(c *gin.Context)
- func LinkGet(c *gin.Context)
- func LinkIndex(c *gin.Context)
- func LinkUpdate(c *gin.Context)
- func LogoutGet(c *gin.Context)
- func NotifyEmail(subject, body string) error
- func Oauth2Callback(c *gin.Context)
- func PageCreate(c *gin.Context)
- func PageDelete(c *gin.Context)
- func PageEdit(c *gin.Context)
- func PageGet(c *gin.Context)
- func PageIndex(c *gin.Context)
- func PageNew(c *gin.Context)
- func PagePublish(c *gin.Context)
- func PageUpdate(c *gin.Context)
- func PostCreate(c *gin.Context)
- func PostDelete(c *gin.Context)
- func PostEdit(c *gin.Context)
- func PostGet(c *gin.Context)
- func PostIndex(c *gin.Context)
- func PostNew(c *gin.Context)
- func PostPublish(c *gin.Context)
- func PostUpdate(c *gin.Context)
- func ProfileGet(c *gin.Context)
- func ProfileUpdate(c *gin.Context)
- func RestorePost(c *gin.Context)
- func RssGet(c *gin.Context)
- func SendBatchMail(c *gin.Context)
- func SendMail(c *gin.Context)
- func SigninGet(c *gin.Context)
- func SigninPost(c *gin.Context)
- func SignupGet(c *gin.Context)
- func SignupPost(c *gin.Context)
- func Subscribe(c *gin.Context)
- func SubscribeGet(c *gin.Context)
- func SubscriberIndex(c *gin.Context)
- func SubscriberPost(c *gin.Context)
- func TagCreate(c *gin.Context)
- func TagGet(c *gin.Context)
- func UnSubscribe(c *gin.Context)
- func UnbindEmail(c *gin.Context)
- func UnbindGithub(c *gin.Context)
- func Upload(c *gin.Context)
- func UserIndex(c *gin.Context)
- func UserLock(c *gin.Context)
- type GithubUserInfo
- type PutRet
- type QiniuUploader
- type Size
- type SmmsRet
- type SmmsUploader
- type Stat
- type Uploader
Constants ¶
View Source
const ( SESSION_KEY = "UserID" // session key CONTEXT_USER_KEY = "User" // context user key SESSION_GITHUB_STATE = "GITHUB_STATE" // github state session key SESSION_CAPTCHA = "GIN_CAPTCHA" // captcha session key )
Variables ¶
This section is empty.
Functions ¶
func ActiveSubscriber ¶
func AdminIndex ¶
func ArchiveGet ¶
func BackupPost ¶
func CaptchaGet ¶
func CommentDelete ¶
func CommentPost ¶
func CommentRead ¶
func CommentReadAll ¶
func CreateXMLSitemap ¶
func CreateXMLSitemap()
func GetUnSubcribeUrl ¶
func GetUnSubcribeUrl(subscriber *models.Subscriber) (string, error)
func HandleMessage ¶
func LinkCreate ¶
func LinkDelete ¶
func LinkUpdate ¶
func NotifyEmail ¶
func Oauth2Callback ¶
func PageCreate ¶
func PageDelete ¶
func PagePublish ¶
func PageUpdate ¶
func PostCreate ¶
func PostDelete ¶
func PostPublish ¶
func PostUpdate ¶
func ProfileGet ¶
func ProfileUpdate ¶
func RestorePost ¶
func SendBatchMail ¶
func SigninPost ¶
func SignupPost ¶
func SubscribeGet ¶
func SubscriberIndex ¶
func UnSubscribe ¶
func UnbindEmail ¶
func UnbindGithub ¶
Types ¶
type GithubUserInfo ¶
type GithubUserInfo struct { AvatarURL string `json:"avatar_url"` Bio interface{} `json:"bio"` Blog string `json:"blog"` Company interface{} `json:"company"` CreatedAt string `json:"created_at"` Email interface{} `json:"email"` EventsURL string `json:"events_url"` Followers int `json:"followers"` FollowersURL string `json:"followers_url"` Following int `json:"following"` FollowingURL string `json:"following_url"` GistsURL string `json:"gists_url"` GravatarID string `json:"gravatar_id"` Hireable interface{} `json:"hireable"` HTMLURL string `json:"html_url"` ID int `json:"id"` Location interface{} `json:"location"` Login string `json:"login"` Name interface{} `json:"name"` OrganizationsURL string `json:"organizations_url"` PublicGists int `json:"public_gists"` PublicRepos int `json:"public_repos"` ReceivedEventsURL string `json:"received_events_url"` ReposURL string `json:"repos_url"` SiteAdmin bool `json:"site_admin"` StarredURL string `json:"starred_url"` SubscriptionsURL string `json:"subscriptions_url"` Type string `json:"type"` UpdatedAt string `json:"updated_at"` URL string `json:"url"` }
type QiniuUploader ¶
type QiniuUploader struct { }
type SmmsRet ¶
type SmmsRet struct { Code string `json:"code"` Data struct { FileName string `json:"filename"` StoreName string `json:"storename"` Size int `json:"size"` Width int `json:"width"` Height int `json:"height"` Hash string `json:"hash"` Delete string `json:"delete"` Url string `json:"url"` Path string `json:"path"` Msg string `json:"msg"` } `json:"data"` }
type SmmsUploader ¶
type SmmsUploader struct { }
Click to show internal directories.
Click to hide internal directories.