httpclient

package
v0.0.0-...-fd95499 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) Do

func (h *HTTPClient) Do(data []byte, httpMethod, url string, hrole string) ([]byte, error)

Do send request

func (*HTTPClient) PsychologistName

func (h *HTTPClient) PsychologistName(psychologistID, userRole string) (*model.Psychologist, error)

PsychologistName ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL