Documentation
¶
Index ¶
Constants ¶
View Source
const OriginHeader = "Origin"
Variables ¶
View Source
var Logger = shared.ProvideLogger(os.Getenv("LOG_LEVEL"))
Functions ¶
func SendJsonResponse ¶
func SendJsonResponse(w http.ResponseWriter, data interface{})
func SetCookieAndOriginHeaders ¶
func SetCookieAndOriginHeaders(req *http.Request, c *ComponentClient)
Types ¶
type ChangePasswordForm ¶
type ComponentClient ¶
type ComponentClient struct {
User string
Password string
NewPassword string
Origin string
Cookie *http.Cookie
SetOriginHeader bool
SetCookieHeader bool
RootUrl string
}
func (*ComponentClient) DoRequest ¶
func (c *ComponentClient) DoRequest(path string, payload interface{}, expectedMessage string) (interface{}, error)
func (*ComponentClient) DoRequestWithFullResponse ¶
type SingleString ¶
type SingleString struct {
Value string `json:"value"`
}
Click to show internal directories.
Click to hide internal directories.