Documentation ¶
Index ¶
- func WithAPIUrl(u string) func(*Client) error
- func WithHTTPClient(client *http.Client) func(*Client) error
- type Client
- func (c *Client) Create(typeName string) (string, error)
- func (c *Client) Do(req *http.Request) (resp *http.Response, err error)
- func (c *Client) List() (string, error)
- func (c *Client) ListJson() (map[string]*ListJsonItem, error)
- func (c *Client) NewRequest(method, path string, body interface{}) (*http.Request, error)
- type ListJsonItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAPIUrl ¶ added in v0.0.3
WithAPIUrl sets the API url option for gogi client
Types ¶
type Client ¶
Client for querying API
func NewHTTPClient ¶
NewHTTPClient create new gogi client
Click to show internal directories.
Click to hide internal directories.