testtaker

package
v0.0.0-...-0ba4303 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	Type string `json:"type"`
}

type ApiTestTaker

type ApiTestTaker struct {
	ID                    int         `json:"id"`
	Name                  string      `json:"name"`
	Email                 string      `json:"email"`
	URL                   string      `json:"url"`
	HireState             string      `json:"hire_state"`
	SubmittedInTime       bool        `json:"submitted_in_time"`
	IsDemo                bool        `json:"is_demo"`
	Percent               int         `json:"percent"`
	StartedAt             int         `json:"started_at"`
	FinishedAt            int         `json:"finished_at"`
	ContactInfo           ContactInfo `json:"contact_info"`
	TestDurationInSeconds int         `json:"test_duration_in_seconds"`
}

type ApiTestTakerService

type ApiTestTakerService struct {
	Email, Password, AuthApiEndpoint, TestTakersApiEndpoint string
}

func (*ApiTestTakerService) GetNewTestTakers

func (testTakerService *ApiTestTakerService) GetNewTestTakers(repository domain.Repository, errorHandler domain.ErrorHandler) (testTakers []domain.TestTaker, err error)

type AuthRequest

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

type AuthResponse

type AuthResponse struct {
	AccessToken string    `json:"access_token"`
	Error       *ApiError `json:"error,omitempty"`
}

type ContactInfo

type ContactInfo struct {
	Phone        string `json:"phone"`
	FullName     string `json:"full_name"`
	Street       string `json:"street"`
	City         string `json:"city"`
	ZipCode      string `json:"zip_code"`
	State        string `json:"state"`
	Country      string `json:"country"`
	Website      string `json:"website"`
	Linkedin     string `json:"linkedin"`
	ContactEmail string `json:"contact_email"`
}

type TestTakersRequest

type TestTakersRequest struct {
	Limit  int `json:"limit"`
	Offset int `json:"offset"`
}

func (*TestTakersRequest) ToMap

func (request *TestTakersRequest) ToMap() map[string]string

type TestTakersResponse

type TestTakersResponse struct {
	TestTakers []ApiTestTaker `json:"test_takers"`
	Total      int            `json:"total"`
	Error      *ApiError      `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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