Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginReq ¶
type LoginResp ¶
type LoginResp struct { UserInfo ServerInfo ServerInfo `json:"server_info"` JwtToken string `json:"jwt_token"` }
type ServerInfo ¶
type ServerInfo struct {
ApiVer string `json:"api_ver"`
}
type Site ¶
type Site struct { Chain `mir:"-"` Index func(Get, Chain) `mir:"/index/"` Articles func(Get) `mir:"/articles/:category/"` AnyTopics func() `mir:"/topics/"` NextTweets func(Any, TweetsReq) TweetsResp `mir:"/tweets/next/" binding:"json"` PrevTweets func(Post, Get, Head, TweetsReq) TweetsResp `mir:"/tweets/prev/" render:"json"` Login func(Post, LoginReq) LoginResp `mir:"/user/login/"` Logout func(Post, LogoutReq) `mir:"/user/logout/"` ImageUpload func(Post, Context) `mir:"/upload/image/:name/"` FileUpload func(Post, Chain, Context) `mir:"/upload/file/:name/"` SimpleUpload func(Post, Chain, Context, LoginReq) LoginResp `mir:"/upload/simple/:name/"` Assets func(Get, Context, LoginReq) `mir:"/assets/:name/"` Statics func(Get, Context) `mir:"/statics/:name/"` AnyStaticks func(Any, Context) `mir:"/anystaticks/:name/"` ManyResources func(Get, Head, Options, Context) `mir:"/resources/:name/"` MultiAttachments func(Get, Head, Options, Chain, Context) `mir:"/attachments/:name/"` }
Site site interface info
type TweetsResp ¶
Click to show internal directories.
Click to hide internal directories.