Documentation ¶
Index ¶
- type AtomMetadata
- type Client
- func (c *Client) Do(method string, url string, reqBody interface{}, respBody interface{}) (header http.Header, err error)
- func (c *Client) Get(url string, respBody interface{}) (header http.Header, err error)
- func (c *Client) Post(url string, reqBody interface{}, respBody interface{}) (err error)
- func (c *Client) Put(url string, reqBody interface{}, respBody interface{}) (err error)
- type Metadata
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomMetadata ¶
type AtomMetadata struct { ApplicationID string `json:"application.id"` ServiceName string `json:"service.name"` InstanceID string `json:"instance.id"` GroupID string `json:"group.id"` LocalIP string `json:"connection.ip"` LocalPort string `json:"service.port"` NamespaceID string `json:"namespace.id"` Interface string `json:"interface"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Do ¶
func (c *Client) Do(method string, url string, reqBody interface{}, respBody interface{}) (header http.Header, err error)
Do http do
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures how we set up the client.
func WithMaxConnPerHost ¶
WithMaxConnPerHost returns a Option that configures a maxConnsPerHost for dialing a ClientConn initially.
func WithTimeout ¶
WithTimeout returns a Option that configures a timeout for dialing a ClientConn initially.
Click to show internal directories.
Click to hide internal directories.