Documentation ¶
Index ¶
- type HTTPClient
- func (h *HTTPClient) ClientLessonList(clientID, psychologistID, userRole string) ([]*model.Shedule, error)
- func (h *HTTPClient) ClientLessonReschedule(clientID, psychologistID, userRole string, dateTimeOld, dateTimeNew time.Time) error
- func (h *HTTPClient) ClientLessonSet(clientID, psychologistID, userRole string, dateTime time.Time) error
- func (h *HTTPClient) Do(data []byte, httpMethod, url string, hrole string) ([]byte, error)
- func (h *HTTPClient) PsychologistName(psychologistID, userRole string) (*model.Psychologist, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
HTTPClient ...
func New ¶
func New(baseURL, userAgent string, client *http.Client) (*HTTPClient, error)
New return new http client
func TestNewHTTPClient ¶
func TestNewHTTPClient(t *testing.T) *HTTPClient
func (*HTTPClient) ClientLessonList ¶
func (h *HTTPClient) ClientLessonList(clientID, psychologistID, userRole string) ([]*model.Shedule, error)
ClientLessonList ...
func (*HTTPClient) ClientLessonReschedule ¶
func (h *HTTPClient) ClientLessonReschedule(clientID, psychologistID, userRole string, dateTimeOld, dateTimeNew time.Time) error
ClientLessonReschedule ...
func (*HTTPClient) ClientLessonSet ¶
func (h *HTTPClient) ClientLessonSet(clientID, psychologistID, userRole string, dateTime time.Time) error
ClientLessonSet ...
func (*HTTPClient) PsychologistName ¶
func (h *HTTPClient) PsychologistName(psychologistID, userRole string) (*model.Psychologist, error)
PsychologistName ...
Click to show internal directories.
Click to hide internal directories.