entities

package
v0.0.0-...-1a5deed Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnalyzeRequestInputTypeCSV for when the user uploaded a CSV file
	AnalyzeRequestInputTypeCSV = "csv"
	// AnalyzeRequestInputTypeCredentials type when user submits username and password
	AnalyzeRequestInputTypeCredentials = "username/password"
)
View Source
const (
	// AnalyzeRequestStatusInProgress indicates that the request is in progress
	AnalyzeRequestStatusInProgress = AnalyzeRequestStatus("in-progress")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzeRequest

type AnalyzeRequest struct {
	ID                id.ID
	UserID            id.ID
	InputType         string
	OvChipkaartNumber string
	Status            AnalyzeRequestStatus
	StartDate         time.Time
	EndDate           time.Time
	CreatedAt         time.Time
	UpdatedAt         time.Time
}

AnalyzeRequest entity

type AnalyzeRequestStatus

type AnalyzeRequestStatus string

AnalyzeRequestStatus is the status of the request

func (AnalyzeRequestStatus) String

func (status AnalyzeRequestStatus) String() string

String converts form status to string

type User

type User struct {
	ID        id.ID
	FirstName string
	LastName  string
	Email     string
	Password  string
	CreatedAt time.Time
	UpdatedAt time.Time
}

User is the user entity

Jump to

Keyboard shortcuts

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