Documentation ¶
Overview ¶
Package httpclient implements HTTP client initialization and message processing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct { IP string Port string WriteTimeout time.Duration ReadTimeout time.Duration // contains filtered or unexported fields }
HTTPClient is structure used to init HttpClient
func NewHTTPClient ¶
func NewHTTPClient(dic *di.Container) *HTTPClient
NewHTTPClient initializes a new Http client instance
func (*HTTPClient) Init ¶
func (hc *HTTPClient) Init(c config.Config) error
Init is a method to construct HTTP server
func (*HTTPClient) Receive ¶
func (hc *HTTPClient) Receive(c config.Config) (interface{}, error)
Receive http server start listen
func (*HTTPClient) Send ¶
func (hc *HTTPClient) Send(message interface{}) error
Send no messages need to be sent
Click to show internal directories.
Click to hide internal directories.