Documentation ¶ Index ¶ Constants func SendData(h http.Handler, injecters ...Injecter) http.Handler type Injecter type Prefix func (p Prefix) Match(s string) bool func (p Prefix) Unpack(result interface{}, sendData string) error Constants ¶ View Source const HeaderKey = "Gitlab-Workhorse-Send-Data" Variables ¶ This section is empty. Functions ¶ func SendData ¶ added in v0.6.5 func SendData(h http.Handler, injecters ...Injecter) http.Handler Types ¶ type Injecter ¶ added in v0.6.5 type Injecter interface { Match(string) bool Inject(http.ResponseWriter, *http.Request, string) } type Prefix ¶ added in v0.6.5 type Prefix string func (Prefix) Match ¶ added in v0.6.5 func (p Prefix) Match(s string) bool func (Prefix) Unpack ¶ added in v0.6.5 func (p Prefix) Unpack(result interface{}, sendData string) error Source Files ¶ View all Source files injecter.go senddata.go Click to show internal directories. Click to hide internal directories.