Documentation ¶
Index ¶
- func AddContact(client SimpleForceClient, contact *data.Contact) (events.APIGatewayProxyResponse, error)
- func AddOpportunity(opp data.Opportunity) ([]byte, error)
- func UpdateContact(contact *data.Contact) (events.APIGatewayProxyResponse, error)
- func UpdateOpportunity(opp data.Opportunity, email string) ([]byte, error)
- type Contacts
- type Events
- type KeyContact
- type KeyEvents
- type Opportunities
- type SimpleForceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddContact ¶
func AddContact(client SimpleForceClient, contact *data.Contact) (events.APIGatewayProxyResponse, error)
func AddOpportunity ¶
func AddOpportunity(opp data.Opportunity) ([]byte, error)
func UpdateContact ¶
func UpdateContact(contact *data.Contact) (events.APIGatewayProxyResponse, error)
func UpdateOpportunity ¶
func UpdateOpportunity(opp data.Opportunity, email string) ([]byte, error)
Types ¶
type Events ¶
type Events struct{}
func (*Events) HandleEvents ¶
func (e *Events) HandleEvents(req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
type KeyContact ¶
type KeyContact struct{}
type Opportunities ¶
type Opportunities struct { }
func NewOpportunity ¶
func NewOpportunity() *Opportunities
type SimpleForceClient ¶
type SimpleForceClient interface { Query(query string) (*simpleforce.QueryResult, error) SObject(typeName ...string) *simpleforce.SObject }
Click to show internal directories.
Click to hide internal directories.