data

package
v0.0.0-...-2bab997 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCallGql

func GetCallGql(call *Call, wr io.Writer) (err error)

func GetCallsGql

func GetCallsGql() (gql []string, err error)

func GetCompaniesGql

func GetCompaniesGql() (gql []string, err error)

func GetCompanyGql

func GetCompanyGql(company *Company, wr io.Writer) (err error)

func GetContractGql

func GetContractGql(contract *Contract, wr io.Writer) (err error)

func GetContractsGql

func GetContractsGql() (gql []string, err error)

func GetPeopleGql

func GetPeopleGql() (gql []string, err error)

func GetPersonGql

func GetPersonGql(person *Person, wr io.Writer) (err error)

func GetPhoneCallsSchema

func GetPhoneCallsSchema() string

func GetPhoneExampleData

func GetPhoneExampleData() (gql []string, err error)

func GetQueryAllPeople

func GetQueryAllPeople() string

func GetQueryAllPhoneNumbers

func GetQueryAllPhoneNumbers() string

func GetQueryCallDurationOver40

func GetQueryCallDurationOver40() string

func GetQueryCallDurationUnder20

func GetQueryCallDurationUnder20() string

func GetQueryCommonContacts

func GetQueryCommonContacts() string

func GetQueryDeletePerson

func GetQueryDeletePerson() string

func GetQueryLead

func GetQueryLead() string

func GetQueryLondon

func GetQueryLondon() string

func GetQueryPersonWithPhone

func GetQueryPersonWithPhone() string

func GetQuerySept14

func GetQuerySept14() string

func GetQuerySinglePerson

func GetQuerySinglePerson() string

Types

type Call

type Call struct {
	CallerId  string `json:"caller_id"`
	CalleeId  string `json:"callee_id"`
	StartedAt string `json:"started_at"`
	Duration  int    `json:"duration"`
}

func GetCalls

func GetCalls() (companies []Call, err error)

type Company

type Company struct {
	Name string `json:"name"`
}

func GetCompanies

func GetCompanies() (companies []Company, err error)

type Contract

type Contract struct {
	CompanyName string `json:"company_name"`
	PersonId    string `json:"person_id"`
}

func GetContracts

func GetContracts() (companies []Contract, err error)

type Person

type Person struct {
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name"`
	PhoneNumber string `json:"phone_number"`
	City        string `json:"city"`
	Age         int    `json:"age"`
}

func GetPeople

func GetPeople() (people []Person, err error)

Jump to

Keyboard shortcuts

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