Documentation ¶
Overview ¶
Package config parses the config file
Index ¶
Constants ¶
View Source
const ( ActionStrip cfAction = iota ActionIgnore )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { API API `json:"api"` Proxy Proxy `json:"proxy"` Storage Storage `json:"storage"` Log *logrus.Logger `json:"-"` }
func New ¶
func New(opts ConfigOpts) (Config, error)
type ConfigOpts ¶
type Filter ¶
type Filter struct { URLPrefixS string `json:"urlPrefix"` URLPrefix *url.URL `json:"-"` Method string `json:"method"` ReqHeader map[string]cfAction `json:"reqHeader"` RespHeader map[string]cfAction `json:"respHeader"` ReqQuery map[string]cfAction `json:"reqQuery"` BodyForm map[string]cfAction `json:"bodyForm"` }
Click to show internal directories.
Click to hide internal directories.