gae

package
v0.0.0-...-f26991d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2015 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

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

TODO: RECORD is not supported yet

View Source
const LOG_DATA_TYPE_TIMESTAMP = "TIMESTAMP"

Variables

View Source
var LogSinkConfig = &logSinkConfig{}

Functions

func BqLog

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

func BuildBigQueryTables

func BuildBigQueryTables(req *Request) error

func GAESessionStoreFactory

func GAESessionStoreFactory(r *Request) SessionStore

func NewContext

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

Returns a Context Object.

func NewHttpClient

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

func NewHttpClientForRemoteAPI

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

func NewHttpTransport

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

Returns a http.RoundTripper for GAE runtime.

func NewServer

func NewServer() wcg.Server

func RegisterLogDataSchema

func RegisterLogDataSchema(obj interface{}) error

func SendMail

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

func Timeout

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

Types

type AccessLog

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

type EncodedSession struct {
	Data []byte
}

type GAELogSink

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

func NewGAELogSink

func NewGAELogSink(format string) *GAELogSink

func NewGAELogSinkWithContext

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

func (GAELogSink) AsyncSupport

func (w GAELogSink) AsyncSupport() bool

func (GAELogSink) Close

func (w GAELogSink) Close() error

func (GAELogSink) Open

func (w GAELogSink) Open() error

func (*GAELogSink) Write

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

type GAEServer

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

func (*GAEServer) Routes

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

func (*GAEServer) Run

func (s *GAEServer) Run() error

type GAESessionStore

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

func NewGAESessionStore

func NewGAESessionStore(ctx appengine.Context) *GAESessionStore

func (*GAESessionStore) Delete

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

func (*GAESessionStore) Load

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

func (*GAESessionStore) Save

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

type MailMessage

type MailMessage mail.Message

Directories

Path Synopsis
This package provides test utilities for 'goapp test' DO NOT import this package in the deployment app.
This package provides test utilities for 'goapp test' DO NOT import this package in the deployment app.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL