Documentation ¶
Overview ¶
interceptor add steps to the REST request before calling the handler
interceptor add steps to the REST request before calling the handler
interceptor add steps to the REST request before calling the handler
interceptor add steps to the REST request before calling the handler
interceptor add steps to the REST request before calling the handler
interceptor add steps to the REST request before calling the handler
interceptor add steps to the REST request before calling the handler
interceptor add steps to the REST request before calling the handler
interceptor add steps to the REST request before calling the handler
interceptor add steps to the REST request before calling the handler
Index ¶
- Variables
- func CheckHTTPCache(w http.ResponseWriter, r *http.Request, handler HTTPCacheHandler)
- type CodecHandler
- type Database
- type DatabaseHandler
- type Domain
- type DomainHandler
- type FQDN
- type FQDNHandler
- type HTTPCacheAfter
- type HTTPCacheBefore
- type HTTPCacheHandler
- type JSONCodec
- type Permission
- type Scan
- type ScanHandler
- type Validator
- type ValidatorHandler
Constants ¶
This section is empty.
Variables ¶
var (
ACL []*net.IPNet
)
var (
ErrSecretNotFound = errors.New("Secret related to Authorization's secret id not found")
)
List of possible errors that can occur when calling functions from this file. Other erros can also occurs from low level layers
Functions ¶
func CheckHTTPCache ¶
func CheckHTTPCache(w http.ResponseWriter, r *http.Request, handler HTTPCacheHandler)
Types ¶
type CodecHandler ¶
type CodecHandler interface { GetLanguage() *messages.LanguagePack MessageResponse(string, string) error }
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func NewDatabase(h DatabaseHandler) *Database
type DatabaseHandler ¶
type DatabaseHandler interface { SetDatabaseSession(*mgo.Session) GetDatabaseSession() *mgo.Session SetDatabase(*mgo.Database) GetDatabase() *mgo.Database }
type Domain ¶
type Domain struct { interceptor.NoAfterInterceptor // contains filtered or unexported fields }
func NewDomain ¶
func NewDomain(h DomainHandler) *Domain
type DomainHandler ¶
type DomainHandler interface { DatabaseHandler GetFQDN() string SetDomain(domain model.Domain) }
type FQDN ¶
type FQDN struct { interceptor.NoAfterInterceptor // contains filtered or unexported fields }
func NewFQDN ¶
func NewFQDN(h FQDNHandler) *FQDN
type FQDNHandler ¶
type HTTPCacheAfter ¶
type HTTPCacheAfter struct { interceptor.NoBeforeInterceptor // contains filtered or unexported fields }
func NewHTTPCacheAfter ¶
func NewHTTPCacheAfter(h HTTPCacheHandler) *HTTPCacheAfter
func (*HTTPCacheAfter) After ¶
func (i *HTTPCacheAfter) After(w http.ResponseWriter, r *http.Request)
type HTTPCacheBefore ¶
type HTTPCacheBefore struct { interceptor.NoAfterInterceptor // contains filtered or unexported fields }
func NewHTTPCacheBefore ¶
func NewHTTPCacheBefore(h HTTPCacheHandler) *HTTPCacheBefore
func (*HTTPCacheBefore) Before ¶
func (i *HTTPCacheBefore) Before(w http.ResponseWriter, r *http.Request)
type HTTPCacheHandler ¶
type JSONCodec ¶
type JSONCodec struct {
// contains filtered or unexported fields
}
func NewJSONCodec ¶
func NewJSONCodec(h CodecHandler) *JSONCodec
type Permission ¶
type Permission struct {
interceptor.NoAfterInterceptor
}
func (*Permission) Before ¶
func (i *Permission) Before(w http.ResponseWriter, r *http.Request)
Permission is responsable for checking if the user is allowed to send requests to the REST server
type Scan ¶
type Scan struct { interceptor.NoAfterInterceptor // contains filtered or unexported fields }
func NewScan ¶
func NewScan(h ScanHandler) *Scan
type ScanHandler ¶
type Validator ¶
type Validator struct { interceptor.NoAfterInterceptor // contains filtered or unexported fields }
func NewValidator ¶
func NewValidator(h ValidatorHandler) *Validator
type ValidatorHandler ¶
type ValidatorHandler interface { SetLanguage(*messages.LanguagePack) MessageResponse(string, string) error }