Documentation ¶
Index ¶
- type DigitalHumani
- func (d *DigitalHumani) CreateCarbonEstimate(carbon int) (*models.Estimate, error)
- func (d *DigitalHumani) GetAllProjects() ([]Project, error)
- func (d *DigitalHumani) Purchase(estimate models.EstimateIn) (*models.Purchase, error)
- func (d *DigitalHumani) RetrieveEstimate(estimateID string) (*models.Estimate, error)
- type DigitalHumaniOpts
- type Project
- type Tree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DigitalHumani ¶
type DigitalHumani struct {
// contains filtered or unexported fields
}
func New ¶
func New() DigitalHumani
func (*DigitalHumani) CreateCarbonEstimate ¶
func (d *DigitalHumani) CreateCarbonEstimate(carbon int) (*models.Estimate, error)
Estimate creates a DigitalHumani estimate for the given volume of carbon
func (*DigitalHumani) GetAllProjects ¶
func (d *DigitalHumani) GetAllProjects() ([]Project, error)
func (*DigitalHumani) Purchase ¶
func (d *DigitalHumani) Purchase(estimate models.EstimateIn) (*models.Purchase, error)
func (*DigitalHumani) RetrieveEstimate ¶
func (d *DigitalHumani) RetrieveEstimate(estimateID string) (*models.Estimate, error)
type DigitalHumaniOpts ¶
type DigitalHumaniOpts struct { }
type Project ¶
type Project struct { ID string CompanyName string `json:"reforestationCompanyName_en"` CompanyWebsite string `json:"reforestationCompanyWebsite_en"` Country string `json:"reforestationProjectCountry_en"` Description string `json:"reforestationProjectDescription_en"` ImageURL string `json:"reforestationProjectImageURL_en"` State string `json:"reforestationProjectState_en"` Website string `json:"reforestationProjectWebsite_en"` }
Project maps the response shema of /project
Click to show internal directories.
Click to hide internal directories.