Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPHandlerFunc ¶
func HTTPHandlerFunc(f func(HTTPContext) error) http.Handler
func JSONHandlerFunc ¶
func JSONHandlerFunc(f func(JSONContext) (jsoncontext.Resp, error)) http.Handler
Types ¶
type DefaultContext ¶
type DefaultContext struct { HTTPContext httpcontext.HTTPContext // contains filtered or unexported fields }
func NewContext ¶
func NewContext(httpContext httpcontext.HTTPContext) (result *DefaultContext, err error)
func (*DefaultContext) ClientId ¶
func (self *DefaultContext) ClientId() string
func (*DefaultContext) Save ¶
func (self *DefaultContext) Save() error
func (*DefaultContext) Session ¶
func (self *DefaultContext) Session() *sessions.Session
func (*DefaultContext) User ¶
func (self *DefaultContext) User() *User
func (*DefaultContext) Version ¶
func (self *DefaultContext) Version() int64
type DefaultHTTPContext ¶
type DefaultHTTPContext struct { gaecontext.HTTPContext Context }
type DefaultJSONContext ¶
type DefaultJSONContext struct { gaecontext.JSONContext Context }
type HTTPContext ¶
type HTTPContext interface { gaecontext.HTTPContext Context }
type JSONContext ¶
type JSONContext interface { gaecontext.JSONContext Context }
type Project ¶
type Project struct { Id *datastore.Key `datastore:"-"` UserId int Name string `update_scopes:"basic"` Repositories []string `update_scopes:"basic"` CreatedAt time.Time UpdatedAt time.Time }
func GetProjectById ¶
func GetProjectById(c HTTPContext, id *datastore.Key) (result *Project, err error)
func (*Project) Delete ¶
func (self *Project) Delete(c HTTPContext) (err error)
func (*Project) Save ¶
func (self *Project) Save(c HTTPContext) (err error)
type Projects ¶
type Projects []Project
func GetProjectsByUserId ¶
func GetProjectsByUserId(c HTTPContext) (result Projects, err error)
Click to show internal directories.
Click to hide internal directories.