wcg: github.com/speedland/wcg/gae Index | Files | Directories

package gae

import "github.com/speedland/wcg/gae"

Index

Package Files

bq_log.go gae_session_store.go logger.go mail.go server.go util.go

Constants

const LOG_DATA_TYPE_BOOLEAN = "BOOLEAN"
const LOG_DATA_TYPE_FLOAT = "FLOAT"
const LOG_DATA_TYPE_INTEGER = "INTEGER"
const LOG_DATA_TYPE_STRING = "STRING"

TODO: RECORD is not supported yet

const LOG_DATA_TYPE_TIMESTAMP = "TIMESTAMP"

Variables

var LogSinkConfig = &logSinkConfig{}

func BqLog Uses

func BqLog() func(*wcg.Response, *wcg.Request)

func BuildBigQueryTables Uses

func BuildBigQueryTables(req *Request) error

func GAESessionStoreFactory Uses

func GAESessionStoreFactory(r *Request) SessionStore

func NewContext Uses

func NewContext(req *wcg.Request) appengine.Context

Returns a Context Object.

func NewHttpClient Uses

func NewHttpClient(req *wcg.Request) *http.Client

func NewHttpClientForRemoteAPI Uses

func NewHttpClientForRemoteAPI(req *wcg.Request, host, email, password string) (*http.Client, error)

func NewHttpTransport Uses

func NewHttpTransport(res *wcg.Response, req *wcg.Request) http.RoundTripper

Returns a http.RoundTripper for GAE runtime.

func NewServer Uses

func NewServer() wcg.Server

func RegisterLogDataSchema Uses

func RegisterLogDataSchema(obj interface{}) error

func SendMail Uses

func SendMail(req *wcg.Request, c *MailMessage) error

func Timeout Uses

func Timeout(req *wcg.Request, t time.Duration) appengine.Context

type AccessLog Uses

type AccessLog struct {
    RequestTime  time.Time `json:"request_time"`
    Ip           string    `json:"ip"`
    Method       string    `json:"method"`
    Path         string    `json:"path"`
    Proto        string    `json:"proto"`
    Status       int       `json:"status"`
    Size         int64     `json:"size"`
    Referer      string    `json:"referer"`
    UserAgent    string    `json:"user_agent"`
    ResponseTime float64   `json:"response_time"`
}

type EncodedSession Uses

type EncodedSession struct {
    Data []byte
}

type GAELogSink Uses

type GAELogSink struct {
    // contains filtered or unexported fields
}

func NewGAELogSink Uses

func NewGAELogSink(format string) *GAELogSink

func NewGAELogSinkWithContext Uses

func NewGAELogSinkWithContext(format string, ctx appengine.Context) *GAELogSink

func (GAELogSink) AsyncSupport Uses

func (w GAELogSink) AsyncSupport() bool

func (GAELogSink) Close Uses

func (w GAELogSink) Close() error

func (GAELogSink) Open Uses

func (w GAELogSink) Open() error

func (*GAELogSink) Write Uses

func (s *GAELogSink) Write(r *LogRecord) error

type GAEServer Uses

type GAEServer struct {
    // contains filtered or unexported fields
}

func (*GAEServer) Routes Uses

func (s *GAEServer) Routes() *wcg.Router

func (*GAEServer) Run Uses

func (s *GAEServer) Run() error

type GAESessionStore Uses

type GAESessionStore struct {
    // contains filtered or unexported fields
}

func NewGAESessionStore Uses

func NewGAESessionStore(ctx appengine.Context) *GAESessionStore

func (*GAESessionStore) Delete Uses

func (s *GAESessionStore) Delete(id string) (bool, error)

func (*GAESessionStore) Load Uses

func (s *GAESessionStore) Load(id string) (*Session, error)

func (*GAESessionStore) Save Uses

func (s *GAESessionStore) Save(sess *Session) error

type MailMessage Uses

type MailMessage mail.Message

Directories

PathSynopsis
bigquery
datastore
memcache
testThis package provides test utilities for 'goapp test' DO NOT import this package in the deployment app.

Package gae imports 19 packages (graph) and is imported by 3 packages. Updated 2016-07-29. Refresh now. Tools for package owners.