Documentation ¶
Index ¶
- func CondVal(data, value interface{}) interface{}
- func CreateClient(options ClientRouteOption, proxyRoute gobis.ProxyRoute) *http.Client
- func NewGobisSourceExtractor(variable string) (utils.SourceExtractor, error)
- func PathHandler(path string, next http.Handler, ...) http.Handler
- func RandString(length int) string
- func RequiredVal(elems ...interface{}) error
- type ClientRouteOption
- type GobisSourceExtractor
- type ResponseData
- type ResponseModifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClient ¶
func CreateClient(options ClientRouteOption, proxyRoute gobis.ProxyRoute) *http.Client
func NewGobisSourceExtractor ¶
func NewGobisSourceExtractor(variable string) (utils.SourceExtractor, error)
func PathHandler ¶
func RandString ¶
func RequiredVal ¶
func RequiredVal(elems ...interface{}) error
Types ¶
type ClientRouteOption ¶
type ClientRouteOption struct { // Set to true to use the same proxy as you could use for you route UseRouteTransport bool `mapstructure:"use_route_transport" json:"use_route_transport" yaml:"use_route_transport"` // Set to true to skip certificate check (NOT RECOMMENDED) InsecureSkipVerify bool `mapstructure:"insecure_skip_verify" json:"insecure_skip_verify" yaml:"insecure_skip_verify"` }
type GobisSourceExtractor ¶
type GobisSourceExtractor struct {
// contains filtered or unexported fields
}
type ResponseData ¶ added in v1.2.0
type ResponseModifier ¶ added in v1.2.0
type ResponseModifier struct {
// contains filtered or unexported fields
}
func NewResponseModifier ¶ added in v1.2.0
func NewResponseModifier(rw http.ResponseWriter) *ResponseModifier
func (ResponseModifier) Header ¶ added in v1.2.0
func (rm ResponseModifier) Header() http.Header
func (ResponseModifier) Modify ¶ added in v1.2.0
func (rm ResponseModifier) Modify(mod func(data ResponseData) (ResponseData, error)) error
func (ResponseModifier) Write ¶ added in v1.2.0
func (rm ResponseModifier) Write(body []byte) (int, error)
func (ResponseModifier) WriteHeader ¶ added in v1.2.0
func (rm ResponseModifier) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.