Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonMarshal ¶
Types ¶
type Config ¶
type Config struct { Token string `json:"token" required:"true"` Endpoint string `json:"endpoint" required:"true"` TokenHeader string `json:"token_header" required:"true"` }
Config
type HttpClient ¶
type HttpClient interface {
ForwardTo(req *http.Request, jsonResp interface{}) (statusCode int, code string, err error)
}
var (
Default HttpClient
)
Click to show internal directories.
Click to hide internal directories.