Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAttribute ¶
func ParseAttribute(req *restful.Request, engine *backbone.Engine) (*meta.AuthAttribute, error)
func ParseCommonInfo ¶
func ParseCommonInfo(requestHeader *http.Header) (*meta.CommonInfo, error)
ParseCommonInfo get common info from req, aims at avoiding too much repeat code
Types ¶
type RequestContext ¶
type RequestContext struct { // http header Header http.Header // http method Method string // request's url path URI string // elements parsed from url, started with api field // 0: api field // 1: version field // 2: action field // >=3: resource fields Elements []string // http request body contents. Body []byte Metadata metadata.Metadata }
Click to show internal directories.
Click to hide internal directories.