api

package
v0.0.0-...-ee63fa1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateModelJob

func CreateModelJob(jobApi Job) models.Job

func CreateModelUpdate

func CreateModelUpdate(updateApi Update) models.Update

func CreateModelUpdates

func CreateModelUpdates(updatesApi []Update) []models.Update

Types

type Job

type Job struct {
	Id          int       `json:"id"`
	Company     string    `json:"company"`
	JobTitle    string    `json:"jobTitle"`
	DateApplied time.Time `json:"dateApplied"`
	JobUrl      string    `json:"jobUrl"`
	Updates     []Update  `json:"updates"`
}

func CreateResponseJob

func CreateResponseJob(jobModel models.Job) Job

type Update

type Update struct {
	Id          int       `json:"id"`
	Display     string    `json:"display"`
	DateUpdated time.Time `json:"dateUpdated"`
	Notes       string    `json:"notes"`
}

func CreateResponseUpdate

func CreateResponseUpdate(updateModel models.Update) Update

func CreateResponseUpdates

func CreateResponseUpdates(updateModels []models.Update) []Update

type UpdateJob

type UpdateJob struct {
	Company     string    `json:"company"`
	JobTitle    string    `json:"jobTitle"`
	DateApplied time.Time `json:"dateApplied"`
	JobUrl      string    `json:"jobUrl"`
	Updates     []Update  `json:"updates"`
}

Jump to

Keyboard shortcuts

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