graphql

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

func Query(query string, variables map[string]interface{}, respData interface{}) error

Types

type Admin

type Admin struct {
	Id       string `json:"id"`
	Password string `json:"password"`
	Name     string `json:"name"`
	LastName string `json:"last_name"`
	Email    string `json:"email"`
}

func CreateAdmin

func CreateAdmin(newAdmin AdminInput) (Admin, error)

func GetAdminByEmail

func GetAdminByEmail(email string) (Admin, error)

type AdminInput

type AdminInput struct {
	Password string `json:"password"`
	Name     string `json:"name"`
	LastName string `json:"last_name"`
	Email    string `json:"email"`
	Token    string `json:"token"`
}

type AdminOutput

type AdminOutput struct {
	Id       *string `json:"id"`
	Password *string `json:"password"`
	Name     *string `json:"name"`
	LastName *string `json:"lastName"`
	Email    *string `json:"email"`
}

type Doctor

type Doctor struct {
	Id       string `json:"id"`
	Password string `json:"password"`
	Email    string `json:"email"`
}

func CreateDoctor

func CreateDoctor(newDoctor DoctorInput) (Doctor, error)

func GetDoctorByEmail

func GetDoctorByEmail(email string) (Doctor, error)

func GetDoctorById

func GetDoctorById(id string) (Doctor, error)

type DoctorInput

type DoctorInput struct {
	Password string `json:"password"`
	Email    string `json:"email"`
}

type DoctorOutput

type DoctorOutput struct {
	Id       *string `json:"id"`
	Password *string `json:"password"`
	Email    *string `json:"email"`
}

type Patient

type Patient struct {
	Id       string `json:"id"`
	Password string `json:"password"`
	Email    string `json:"email"`
}

func CreatePatient

func CreatePatient(newPatient PatientInput) (Patient, error)

func GetPatientByEmail

func GetPatientByEmail(email string) (Patient, error)

func GetPatientById

func GetPatientById(id string) (Patient, error)

type PatientInput

type PatientInput struct {
	Password string `json:"password"`
	Email    string `json:"email"`
}

type PatientOutput

type PatientOutput struct {
	Id       *string `json:"id"`
	Password *string `json:"password"`
	Email    *string `json:"email"`
}

Jump to

Keyboard shortcuts

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