Documentation ¶
Index ¶
- Constants
- func GetUserFromToken(r *http.Request) appgo.Id
- type DefaultSchema
- type HandlerType
- type Metrics
- type MetricsSchema
- type Server
- func (s *Server) AddAppleAppSiteAsso(content []byte)
- func (s *Server) AddHtml(path, layout string, htmls []interface{}, funcs template.FuncMap)
- func (s *Server) AddProxy(path string, handler http.Handler)
- func (s *Server) AddRest(path string, rests []interface{})
- func (s *Server) AddStatic(path, fileDir string)
- func (s *Server) Serve()
- type TokenStore
Constants ¶
View Source
const ( UserIdFieldName = "UserId__" AdminUserIdFieldName = "AdminUserId__" ResIdFieldName = "ResourceId__" ContentFieldName = "Content__" RequestFieldName = "Request__" ConfVerFieldName = "ConfVer__" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultSchema ¶
type DefaultSchema struct { }
func NewDefaultSchema ¶
func NewDefaultSchema() *DefaultSchema
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func (*Metrics) ServeHTTP ¶
func (m *Metrics) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
type Server ¶
func NewServer ¶
func NewServer(ts TokenStore, middlewares []negroni.Handler, mschema []MetricsSchema) *Server
func (*Server) AddAppleAppSiteAsso ¶
type TokenStore ¶
Click to show internal directories.
Click to hide internal directories.