jstruct

package
v0.0.0-...-70b7a9b Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonOffer

type JsonOffer struct {
	Id          string `json:"numeroOffre"`
	Title       string `json:"intitule"`
	Date        string `json:"datePublication"`
	Salary      string `json:"salaireTexte"`
	PartialTime bool   `json:"tempsPartiel"`
	Location    string `json:"lieuTexte"`
	Locations   []struct {
		Name string `json:"libelleLieu"`
	} `json:"lieux"`
	HTML    string `json:"texteHtml"`
	Account string `json:"nomCompteEtablissement"`
}

func (*JsonOffer) MarshalJSON

func (mj *JsonOffer) MarshalJSON() ([]byte, error)

func (*JsonOffer) MarshalJSONBuf

func (mj *JsonOffer) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*JsonOffer) Type

func (offer *JsonOffer) Type() string

func (*JsonOffer) UnmarshalJSON

func (uj *JsonOffer) UnmarshalJSON(input []byte) error

func (*JsonOffer) UnmarshalJSONFFLexer

func (uj *JsonOffer) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

type LocComponent

type LocComponent struct {
	City        string `json:"city"`
	PostCode    string `json:"postcode"`
	County      string `json:"county"`
	State       string `json:"state"`
	Country     string `json:"country"`
	CountryCode string `json:"country_code"`
}

func (*LocComponent) MarshalJSON

func (mj *LocComponent) MarshalJSON() ([]byte, error)

func (*LocComponent) MarshalJSONBuf

func (mj *LocComponent) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*LocComponent) String

func (c *LocComponent) String() string

func (*LocComponent) UnmarshalJSON

func (uj *LocComponent) UnmarshalJSON(input []byte) error

func (*LocComponent) UnmarshalJSONFFLexer

func (uj *LocComponent) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

type LocGeom

type LocGeom struct {
	Lat float64 `json:"lat"`
	Lon float64 `json:"lng"`
}

func (*LocGeom) MarshalJSON

func (mj *LocGeom) MarshalJSON() ([]byte, error)

func (*LocGeom) MarshalJSONBuf

func (mj *LocGeom) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*LocGeom) UnmarshalJSON

func (uj *LocGeom) UnmarshalJSON(input []byte) error

func (*LocGeom) UnmarshalJSONFFLexer

func (uj *LocGeom) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

type LocRate

type LocRate struct {
	Limit     int `json:"limit"`
	Remaining int `json:"remaining"`
}

func (*LocRate) MarshalJSON

func (mj *LocRate) MarshalJSON() ([]byte, error)

func (*LocRate) MarshalJSONBuf

func (mj *LocRate) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*LocRate) UnmarshalJSON

func (uj *LocRate) UnmarshalJSON(input []byte) error

func (*LocRate) UnmarshalJSONFFLexer

func (uj *LocRate) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

type LocResult

type LocResult struct {
	Component LocComponent `json:"components"`
	Geometry  *LocGeom     `json:"geometry"`
}

func (*LocResult) MarshalJSON

func (mj *LocResult) MarshalJSON() ([]byte, error)

func (*LocResult) MarshalJSONBuf

func (mj *LocResult) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*LocResult) UnmarshalJSON

func (uj *LocResult) UnmarshalJSON(input []byte) error

func (*LocResult) UnmarshalJSONFFLexer

func (uj *LocResult) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

type Location

type Location struct {
	Cached  bool
	Rate    LocRate     `json:"rate"`
	Results []LocResult `json:"results"`
}

func (*Location) MarshalJSON

func (mj *Location) MarshalJSON() ([]byte, error)

func (*Location) MarshalJSONBuf

func (mj *Location) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*Location) UnmarshalJSON

func (uj *Location) UnmarshalJSON(input []byte) error

func (*Location) UnmarshalJSONFFLexer

func (uj *Location) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

Jump to

Keyboard shortcuts

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