Documentation ¶
Index ¶
- Variables
- func GetID(request *http.Request) string
- func GetSearchIndex(request *http.Request) string
- func GetSearchQuery(request *http.Request) string
- func HasAccessToKeys(next http.Handler) http.Handler
- func HasAccessToModules(next http.Handler) http.Handler
- func HasAccessToUsers(next http.Handler) http.Handler
- func IDContext(next http.Handler) http.Handler
- func IsAuth(next http.Handler) http.Handler
- func SearchIndexContext(next http.Handler) http.Handler
- func SearchQueryContext(next http.Handler) http.Handler
- type ContextKey
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthHeader = http.CanonicalHeaderKey("X-Auth-Header")
AuthHeader is header for auth process.
View Source
var SessionHeader = http.CanonicalHeaderKey("X-Session-Key")
SessionHeader is header for session key.
Functions ¶
func GetSearchIndex ¶
GetSearchIndex get search type string from request context, which was sets in SearchIndexContext middleware.
func GetSearchQuery ¶
GetSearchQuery get search parameter string from request context, which was sets in SearchQueryContext middleware.
func HasAccessToKeys ¶
HasAccessToKeys check client on aceess to keys endpoint.
func HasAccessToModules ¶
HasAccessToModules check client on aceess to users endpoint.
func HasAccessToUsers ¶
HasAccessToUsers check client on aceess to users endpoint.
func SearchIndexContext ¶
SearchIndexContext set the searchIndex context value.
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey is base key type.
func (ContextKey) String ¶
func (key ContextKey) String() string
Click to show internal directories.
Click to hide internal directories.