Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentTime ¶
func CurrentTime() int64
func CurrentTimeStr ¶
func CurrentTimeStr() string
Types ¶
type Api ¶
type Api struct { rest.Api Conf *ApiConf PKeyMiddleware *PKeyMiddleware Session *mgo.Session Database *mgo.Database Ratings *mgo.Collection }
type ApiHostConf ¶
type PKeyMiddleware ¶
type PKeyMiddleware struct {
PKey string
}
func NewPKeyMiddleware ¶
func NewPKeyMiddleware(pkey string) *PKeyMiddleware
func (*PKeyMiddleware) BuildKey ¶
func (pkm *PKeyMiddleware) BuildKey(pkey string, ts string) []byte
func (*PKeyMiddleware) MiddlewareFunc ¶
func (pkm *PKeyMiddleware) MiddlewareFunc(h rest.HandlerFunc) rest.HandlerFunc
Click to show internal directories.
Click to hide internal directories.