Documentation
¶
Index ¶
- Constants
- Variables
- func BqLog() func(*wcg.Response, *wcg.Request)
- func BuildBigQueryTables(req *Request) error
- func GAESessionStoreFactory(r *Request) SessionStore
- func NewContext(req *wcg.Request) appengine.Context
- func NewHttpClient(req *wcg.Request) *http.Client
- func NewHttpClientForRemoteAPI(req *wcg.Request, host, email, password string) (*http.Client, error)
- func NewHttpTransport(res *wcg.Response, req *wcg.Request) http.RoundTripper
- func NewServer() wcg.Server
- func RegisterLogDataSchema(obj interface{}) error
- func SendMail(req *wcg.Request, c *MailMessage) error
- func Timeout(req *wcg.Request, t time.Duration) appengine.Context
- type AccessLog
- type EncodedSession
- type GAELogSink
- type GAEServer
- type GAESessionStore
- type MailMessage
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 BuildBigQueryTables ¶
func BuildBigQueryTables(req *Request) error
func GAESessionStoreFactory ¶
func GAESessionStoreFactory(r *Request) SessionStore
func NewHttpTransport ¶
Returns a http.RoundTripper for GAE runtime.
func RegisterLogDataSchema ¶
func RegisterLogDataSchema(obj interface{}) error
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 GAESessionStore ¶
type GAESessionStore struct {
// contains filtered or unexported fields
}
func NewGAESessionStore ¶
func NewGAESessionStore(ctx appengine.Context) *GAESessionStore
func (*GAESessionStore) Load ¶
func (s *GAESessionStore) Load(id string) (*Session, error)
func (*GAESessionStore) Save ¶
func (s *GAESessionStore) Save(sess *Session) error
type MailMessage ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.