Documentation
¶
Overview ¶
* moesifapi-go
* moesifapi-go
* moesifapi-go
Index ¶
- Constants
- Variables
- type API
- type Client
- func (c *Client) Close()
- func (c *Client) CreateEvent(event *models.EventModel) (http.Header, error)
- func (c *Client) CreateEventsBatch(events []*models.EventModel) (http.Header, error)
- func (c *Client) Flush()
- func (c *Client) GetAppConfig() (*http.Response, error)
- func (c *Client) QueueCompanies(u []*models.CompanyModel) error
- func (c *Client) QueueCompany(u *models.CompanyModel) error
- func (c *Client) QueueEvent(e *models.EventModel) error
- func (c *Client) QueueEvents(e []*models.EventModel) error
- func (c *Client) QueueUser(u *models.UserModel) error
- func (c *Client) QueueUsers(u []*models.UserModel) error
- func (c *Client) UpdateCompaniesBatch(companies []*models.CompanyModel) error
- func (c *Client) UpdateCompany(company *models.CompanyModel) error
- func (c *Client) UpdateUser(user *models.UserModel) error
- func (c *Client) UpdateUsersBatch(users []*models.UserModel) error
Constants ¶
View Source
const BaseURI string = "https://api.drhttp.com/moesif"
* The base Uri for API calls
View Source
const Version string = "1.0.3"
* Version of this lib
Variables ¶
View Source
var Config = config{QueueSize: 256}
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
/**
* Queue Single API Event Call to be created
* @param *models.EventModel body parameter: Required
* @return Returns the response from the API call
*/
QueueEvent(*models.EventModel) error
/**
* Queue multiple API Events to be added
* @param []*models.EventModel body parameter: Required
* @return Returns the response from the API call
*/
QueueEvents([]*models.EventModel) error
/**
* Queue Single User to be updated
* @param *models.UserModel body parameter: Required
* @return Returns the response from the API call
*/
QueueUser(*models.UserModel) error
/**
* Queue multiple Users to be updated
* @param []*models.UserModel body parameter: Required
* @return Returns the response from the API call
*/
QueueUsers([]*models.UserModel) error
/**
* Queue Single Company to be added
* @param *models.CompanyModel body parameter: Required
* @return Returns the response from the API call
*/
QueueCompany(*models.CompanyModel) error
/**
* Queue multiple companies to be added
* @param []*models.CompanyModel body parameter: Required
* @return Returns the response from the API call
*/
QueueCompanies([]*models.CompanyModel) error
/**
* Add Single API Event Call
* @param *models.EventModel body parameter: Required
* @return Returns the response from the API call
*/
CreateEvent(*models.EventModel) (http.Header, error)
/**
* Add multiple API Events in a single batch (batch size must be less than 250kb)
* @param []*models.EventModel body parameter: Required
* @return Returns the response from the API call
*/
CreateEventsBatch([]*models.EventModel) (http.Header, error)
/**
* Update a Single User
* @param *models.UserModel body parameter: Required
* @return Returns the response from the API call
*/
UpdateUser(*models.UserModel) error
/**
* Update multiple Users in a single batch (batch size must be less than 250kb)
* @param []*models.UserModel body parameter: Required
* @return Returns the response from the API call
*/
UpdateUsersBatch([]*models.UserModel) error
/**
* Get Application configuration
* @param nil body parameter: Required
* @return Returns the response from the API call
*/
GetAppConfig() (*http.Response, error)
/**
* Update a Single Company
* @param *models.CompanyModel body parameter: Required
* @return Returns the response from the API call
*/
UpdateCompany(*models.CompanyModel) error
/**
* Update multiple companies in a single batch (batch size must be less than 250kb)
* @param []*models.CompanyModel body parameter: Required
* @return Returns the response from the API call
*/
UpdateCompaniesBatch([]*models.CompanyModel) error
Flush()
Close()
}
* Interface for the Client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
* Client structure as interface implementation
func (*Client) CreateEvent ¶
*
- Add Single API Event Call
- @param *models.EventModel body parameter: Required
- @return Returns the response from the API call
func (*Client) CreateEventsBatch ¶
*
- Add multiple API Events in a single batch (batch size must be less than 250kb)
- @param []*models.EventModel body parameter: Required
- @return Returns the response from the API call
func (*Client) GetAppConfig ¶
*
- Get Application configuration
- @param nil parameter: Required
- @return Returns the response from the API call
func (*Client) QueueCompanies ¶
func (c *Client) QueueCompanies(u []*models.CompanyModel) error
*
- Queue multiple companies to be added
- @param []*models.UserModel body parameter: Required
- @return Returns the response from the API call
func (*Client) QueueCompany ¶
func (c *Client) QueueCompany(u *models.CompanyModel) error
*
- Queue Single Company to be added
- @param *models.CompanyModel body parameter: Required
- @return Returns the response from the API call
func (*Client) QueueEvent ¶
func (c *Client) QueueEvent(e *models.EventModel) error
*
- Queue Single API Event Call to be created
- @param *models.EventModel body parameter: Required
- @return Returns the response from the API call
func (*Client) QueueEvents ¶
func (c *Client) QueueEvents(e []*models.EventModel) error
*
- Queue multiple API Events to be added
- @param []*models.EventModel body parameter: Required
- @return Returns the response from the API call
func (*Client) QueueUser ¶
*
- Queue Single User to be updated
- @param *models.UserModel body parameter: Required
- @return Returns the response from the API call
func (*Client) QueueUsers ¶
*
- Queue multiple Users to be updated
- @param []*models.UserModel body parameter: Required
- @return Returns the response from the API call
func (*Client) UpdateCompaniesBatch ¶
func (c *Client) UpdateCompaniesBatch(companies []*models.CompanyModel) error
*
- Update multiple companies in a single batch (batch size must be less than 250kb)
- @param []*models.CompanyModel body parameter: Required
- @return Returns the response from the API call
func (*Client) UpdateCompany ¶
func (c *Client) UpdateCompany(company *models.CompanyModel) error
*
- Update a Single Company
- @param *models.CompanyModel body parameter: Required
- @return Returns the response from the API call
func (*Client) UpdateUser ¶
*
- Update a Single User
- @param *models.UserModel body parameter: Required
- @return Returns the response from the API call
Click to show internal directories.
Click to hide internal directories.