interceptor

package
Version: v0.0.0-...-a7a9960 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2015 License: GPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptLanguageAJAX

type AcceptLanguageAJAX struct {
	trama.NopAJAXInterceptor
	// contains filtered or unexported fields
}

func NewAcceptLanguageAJAX

func NewAcceptLanguageAJAX(h languageMessager) *AcceptLanguageAJAX

func (AcceptLanguageAJAX) Before

type AcceptLanguageWeb

type AcceptLanguageWeb struct {
	trama.NopWebInterceptor
	// contains filtered or unexported fields
}

func NewAcceptLanguageWeb

func NewAcceptLanguageWeb(h languageMessager) *AcceptLanguageWeb

func (AcceptLanguageWeb) Before

func (i AcceptLanguageWeb) Before(response trama.Response, r *http.Request)

type DatabaseAJAX

type DatabaseAJAX struct {
	// contains filtered or unexported fields
}

func NewDatabaseAJAX

func NewDatabaseAJAX(h sqler) *DatabaseAJAX

func (*DatabaseAJAX) After

func (i *DatabaseAJAX) After(w http.ResponseWriter, r *http.Request)

func (*DatabaseAJAX) Before

func (i *DatabaseAJAX) Before(w http.ResponseWriter, r *http.Request)

type DatabaseCompliant

type DatabaseCompliant struct {
	// contains filtered or unexported fields
}

func (*DatabaseCompliant) SetTx

func (d *DatabaseCompliant) SetTx(tx db.Transaction)

func (*DatabaseCompliant) Tx

type DatabaseWeb

type DatabaseWeb struct {
	// contains filtered or unexported fields
}

func NewDatabaseWeb

func NewDatabaseWeb(h sqler) *DatabaseWeb

func (*DatabaseWeb) After

func (i *DatabaseWeb) After(response trama.Response, r *http.Request)

func (*DatabaseWeb) Before

func (i *DatabaseWeb) Before(response trama.Response, r *http.Request)

type HTTPTransactionAJAX

type HTTPTransactionAJAX struct {
	trama.NopAJAXInterceptor
	// contains filtered or unexported fields
}

func NewHTTPTransactionAJAX

func NewHTTPTransactionAJAX(h httpTransactioner) *HTTPTransactionAJAX

func (HTTPTransactionAJAX) Before

type HTTPTransactionCompliant

type HTTPTransactionCompliant struct {
	// contains filtered or unexported fields
}

func (*HTTPTransactionCompliant) HTTPId

func (h *HTTPTransactionCompliant) HTTPId() string

func (*HTTPTransactionCompliant) Logger

func (h *HTTPTransactionCompliant) Logger() *log.Logger

func (*HTTPTransactionCompliant) SetHTTPId

func (h *HTTPTransactionCompliant) SetHTTPId(id string)

func (*HTTPTransactionCompliant) SetLogger

func (h *HTTPTransactionCompliant) SetLogger(logger log.Logger)

type HTTPTransactionWeb

type HTTPTransactionWeb struct {
	trama.NopWebInterceptor
	// contains filtered or unexported fields
}

func NewHTTPTransactionWeb

func NewHTTPTransactionWeb(h httpTransactioner) *HTTPTransactionWeb

func (HTTPTransactionWeb) Before

func (i HTTPTransactionWeb) Before(response trama.Response, r *http.Request)

type JSON

type JSON struct {
	// contains filtered or unexported fields
}

func NewJSON

func NewJSON(h requestResponser) *JSON

func (*JSON) After

func (i *JSON) After(w http.ResponseWriter, r *http.Request)

func (*JSON) Before

func (i *JSON) Before(w http.ResponseWriter, r *http.Request)

type JSONCompliant

type JSONCompliant struct {
	// contains filtered or unexported fields
}

func (*JSONCompliant) Message

func (j *JSONCompliant) Message() protocol.Translator

func (*JSONCompliant) RequestValue

func (j *JSONCompliant) RequestValue() reflect.Value

func (*JSONCompliant) ResponseValue

func (j *JSONCompliant) ResponseValue() reflect.Value

func (*JSONCompliant) SetMessage

func (j *JSONCompliant) SetMessage(m protocol.Translator)

func (*JSONCompliant) SetRequestValue

func (j *JSONCompliant) SetRequestValue(r reflect.Value)

func (*JSONCompliant) SetResponseValue

func (j *JSONCompliant) SetResponseValue(r reflect.Value)

type LanguageCompliant

type LanguageCompliant struct {
	// contains filtered or unexported fields
}

func (*LanguageCompliant) Language

func (h *LanguageCompliant) Language() string

func (*LanguageCompliant) Msg

func (h *LanguageCompliant) Msg(code errors.ValidationCode, args ...interface{}) string

func (*LanguageCompliant) SetLanguage

func (h *LanguageCompliant) SetLanguage(language string)

func (*LanguageCompliant) SetMessages

func (h *LanguageCompliant) SetMessages(messages tr.MessageHolder)

type POST

type POST struct {
	trama.NopWebInterceptor
	// contains filtered or unexported fields
}

func NewPOST

func NewPOST(h poster) *POST

func (*POST) Before

func (i *POST) Before(response trama.Response, r *http.Request)

type POSTCompliant

type POSTCompliant struct {
	// contains filtered or unexported fields
}

func (*POSTCompliant) RequestValue

func (p *POSTCompliant) RequestValue() reflect.Value

func (*POSTCompliant) SetRequestValue

func (p *POSTCompliant) SetRequestValue(r reflect.Value)

type RemoteAddressAJAX

type RemoteAddressAJAX struct {
	trama.NopAJAXInterceptor
	// contains filtered or unexported fields
}

func NewRemoteAddressAJAX

func NewRemoteAddressAJAX(h remoteAddresser) *RemoteAddressAJAX

func (*RemoteAddressAJAX) Before

type RemoteAddressCompliant

type RemoteAddressCompliant struct {
	// contains filtered or unexported fields
}

func (*RemoteAddressCompliant) RemoteAddress

func (r *RemoteAddressCompliant) RemoteAddress() net.IP

func (*RemoteAddressCompliant) SetRemoteAddress

func (r *RemoteAddressCompliant) SetRemoteAddress(a net.IP)

type RemoteAddressWeb

type RemoteAddressWeb struct {
	trama.NopWebInterceptor
	// contains filtered or unexported fields
}

func NewRemoteAddressWeb

func NewRemoteAddressWeb(h remoteAddresser) *RemoteAddressWeb

func (*RemoteAddressWeb) Before

func (i *RemoteAddressWeb) Before(response trama.Response, r *http.Request)

type SessionAJAX

type SessionAJAX struct {
	trama.NopAJAXInterceptor
	// contains filtered or unexported fields
}

func NewSessionAJAX

func NewSessionAJAX(h sessioner) *SessionAJAX

func (SessionAJAX) Before

func (i SessionAJAX) Before(w http.ResponseWriter, r *http.Request)

type SessionCompliant

type SessionCompliant struct {
	// contains filtered or unexported fields
}

func (*SessionCompliant) Session

func (h *SessionCompliant) Session() session.Session

func (*SessionCompliant) SetSession

func (h *SessionCompliant) SetSession(session session.Session)

type SessionWeb

type SessionWeb struct {
	trama.NopWebInterceptor
	// contains filtered or unexported fields
}

func NewSessionWeb

func NewSessionWeb(h sessioner) *SessionWeb

func (SessionWeb) Before

func (i SessionWeb) Before(response trama.Response, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL