model

package
v0.0.0-...-249e8ee Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MaxContentLength = 50

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	// contains filtered or unexported fields
}

func NewCategory

func NewCategory(title string, uri string) *Category

func (*Category) MarshalJSON

func (c *Category) MarshalJSON() ([]byte, error)

func (*Category) Title

func (c *Category) Title() string

func (*Category) URI

func (c *Category) URI() string

func (*Category) UnmarshalJSON

func (c *Category) UnmarshalJSON(b []byte) error

type Period

type Period struct {
	PostedAt  string
	ExpiresAt string
}

func (Period) String

func (p Period) String() string

type Salary

type Salary struct {
	From string
	To   string
}

func (Salary) String

func (s Salary) String() string

type Vacancy

type Vacancy struct {
	// contains filtered or unexported fields
}

func NewVacancy

func NewVacancy(
	position string,
	salary Salary,
	company string,
	location string,
	period Period,
) *Vacancy

func (*Vacancy) Company

func (v *Vacancy) Company() string

func (*Vacancy) MarshalJSON

func (v *Vacancy) MarshalJSON() ([]byte, error)

func (*Vacancy) Period

func (v *Vacancy) Period() Period

func (*Vacancy) Position

func (v *Vacancy) Position() string

func (*Vacancy) Salary

func (v *Vacancy) Salary() Salary

func (*Vacancy) UnmarshalJSON

func (v *Vacancy) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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