Documentation
¶
Overview ¶
*
- Copyright 2015 @ S1N1 Team.
- name : device
- author : jarryliu
- date : -- :
- description :
- history :
*
- Copyright 2015 @ S1N1 Team.
- name : member.go
- author : jarryliu
- date : -- :
- description :
- history :
*
- Copyright 2015 @ S1N1 Team.
- name : static
- author : jarryliu
- date : -- :
- description :
- history :
Index ¶
- Constants
- Variables
- func CompareMemberApiToken(sto gof.Storage, memberId int, token string) bool
- func GetBrownerDevice(ctx *web.Context) string
- func GetMemberApiToken(sto gof.Storage, memberId int) (string, string)
- func GetMemberApiTokenKey(memberId int) string
- func MemberHttpSessionConnect(ctx *web.Context, call func(memberId int)) (ok bool, memberId int)
- func MemberHttpSessionDisconnect(ctx *web.Context) bool
- func RemoveMemberApiToken(sto gof.Storage, memberId int, token string) bool
- func SetBrownerDevice(ctx *web.Context, deviceType string)
- func SetDeviceByUrlQuery(ctx *web.Context, form *url.Values) bool
- func SetMemberApiToken(sto gof.Storage, memberId int, pwd string) string
Constants ¶
View Source
const ( // PC设备 DevicePC string = "1" // 手持设备 DeviceMobile string = "2" // 触摸设备 DeviceTouchPad string = "3" // APP内嵌网页 DeviceAppEmbed string = "4" )
Variables ¶
View Source
var HttpStaticFileHandler = func(ctx *web.Context) { http.ServeFile(ctx.Response, ctx.Request, "."+ctx.Request.URL.Path) }
处理静态文件
Functions ¶
func CompareMemberApiToken ¶
校验令牌
func GetMemberApiToken ¶
获取会员的API令牌
func MemberHttpSessionConnect ¶
会员Http请求会话链接
func MemberHttpSessionDisconnect ¶
会员Http请求会话链接
func RemoveMemberApiToken ¶
移除会员令牌
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.