digitalhumani

package
v0.0.0-...-b2d281f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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

type Tree

type Tree struct {
	UUID         string
	TreeCount    int
	EnterpriseID string
	ProjectID    string
	User         string
	Message      string
}

Tree maps the response schema of /tree

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL