Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { *flag.FlagSet PIDFile string `yaml:"pid_file"` ListenAddr string `yaml:"listen"` APIPath string `yaml:"api_path"` ExpvarPath string `yaml:"expvar_path"` PProfFile string `yaml:"pprof"` PProfURL string `yaml:"pprof_url"` }
Config holds configuration of proxy.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server encapsulates a HTTP server which provide asset related information.
type ServerCtrlResp ¶
type ServerCtrlResp struct { Code int `json:"code"` Text string `json:"text,omitempty"` Timestamp time.Time `json:"ts"` }
ServerCtrlResp is a server control response {ctrl}.
type ServerResp ¶
type ServerResp struct {
Ctrl *ServerCtrlResp `json:"ctrl,omitempty"`
}
ServerResp is a wrapper for server side response.
func ErrOperationNotAllowed ¶
func ErrOperationNotAllowed(ts time.Time) *ServerResp
ErrOperationNotAllowed a valid operation is not permitted in this context (405).
Source Files ¶
Click to show internal directories.
Click to hide internal directories.