Documentation
¶
Index ¶
- Variables
- func AssertOkError(err error)
- func GAELoggerFactory(r *http.Request) common.Logger
- func IsOkError(err error) bool
- func MemDel(c context.Context, keys ...string)
- func MemGet(c context.Context, key string, val interface{})
- func MemPut(c context.Context, key string, val interface{})
- func Memoize(c context.Context, key string, destP interface{}, f func() interface{}) (exists bool)
- func Memoize2(c context.Context, super, key string, destP interface{}, f func() interface{}) (exists bool)
- func MemoizeDuring(c context.Context, key string, dur time.Duration, cacheNil bool, ...) (exists bool)
- func MemoizeMulti(c context.Context, keys []string, destPs []interface{}, f []func() interface{}) (exists []bool)
- func MostAccepted(r *http.Request, def, name string) string
- func MustDecodeKey(s string) (result *datastore.Key)
- func MustMarshal(i interface{}) (b []byte)
- func MustUnmarshal(b []byte, i interface{})
- func SetContentType(w http.ResponseWriter, t string, cache bool)
- func Transaction(outerContext Context, f func(Context) error) error
- type Context
- type GAELogger
Constants ¶
This section is empty.
Variables ¶
View Source
var MemCodec = snappyGobCodec
Functions ¶
func AssertOkError ¶
func AssertOkError(err error)
func MemoizeDuring ¶
func MemoizeMulti ¶
func MustDecodeKey ¶
func MustMarshal ¶
func MustMarshal(i interface{}) (b []byte)
func MustUnmarshal ¶
func MustUnmarshal(b []byte, i interface{})
func SetContentType ¶
func SetContentType(w http.ResponseWriter, t string, cache bool)
Types ¶
type Context ¶
type Context struct { context.Context Req *http.Request Resp http.ResponseWriter Version string User *user.User Vars map[string]string }
func (Context) Authenticated ¶
func (Context) RenderJSON ¶
func (self Context) RenderJSON(i interface{})
func (Context) SetContentType ¶
Click to show internal directories.
Click to hide internal directories.