models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BodyRequest

type BodyRequest struct {
	Query Query `json:"query,omitempty"`
}

type Class

type Class struct {
	Code int    `json:"codigo"`
	Name string `json:"nome"`
}

type Complement

type Complement struct {
	Code        int    `json:"codigo"`
	Value       int    `json:"valor"`
	Name        string `json:"nome"`
	Description string `json:"descricao"`
}

type Court

type Court struct {
	CountyCodeIBGE int    `json:"codigoMunicipioIBGE"`
	Code           int    `json:"codigo"`
	Name           string `json:"nome"`
}

type Format

type Format struct {
	Code int    `json:"codigo"`
	Name string `json:"nome"`
}

type Hit

type Hit struct {
	Total    Total   `json:"total"`
	MaxScore float64 `json:"max_score"`
	Hits     []Hit2  `json:"hits"`
}

type Hit2

type Hit2 struct {
	Index  string  `json:"_index"`
	Type   string  `json:"_type"`
	Id     string  `json:"_id"`
	Score  float64 `json:"_score"`
	Source Source  `json:"_source"`
}

type Match

type Match struct {
	CNJNumber string `json:"numeroProcesso,omitempty"`
}

type Movement

type Movement struct {
	Complement []Complement `json:"complementosTabelados,omitempty"`
	Code       int          `json:"codigo"`
	Name       string       `json:"nome"`
	DateTime   time.Time    `json:"dataHora"`
}

type Query

type Query struct {
	Match Match `json:"match,omitempty"`
}

type ReadCsv

type ReadCsv struct {
	CNJNumber string
}

type ResponseBody

type ResponseBody struct {
	Took     int   `json:"took"`
	TimedOut bool  `json:"timed_out"`
	Shards   Shard `json:"_shards"`
	Hit      Hit   `json:"hits"`
}

type Shard

type Shard struct {
	Total      int `json:"total"`
	Successful int `json:"successful"`
	Skipped    int `json:"skipped"`
	Failed     int `json:"failed"`
}

type Source

type Source struct {
	LawsuitNumber    string     `json:"numeroProcesso"`
	Class            Class      `json:"classe"`
	System           System     `json:"sistema"`
	Format           Format     `json:"formato"`
	Court            string     `json:"tribunal"`
	DateLastUpdate   time.Time  `json:"dataHoraUltimaAtualizacao"`
	Degree           string     `json:"grau"`
	Timestamp        time.Time  `json:"@timestamp"`
	DistributionDate time.Time  `json:"dataAjuizamento"`
	Movements        []Movement `json:"movimentos"`
	Id               string     `json:"id"`
	SecrecyLevel     int        `json:"nivelSigilo"`
	CourtInstance    Court      `json:"orgaoJulgador"`
	Subjects         []Subject  `json:"assuntos"`
}

type Subject

type Subject struct {
	Code int    `json:"codigo"`
	Name string `json:"nome"`
}

type System

type System struct {
	Code int    `json:"codigo"`
	Name string `json:"nome"`
}

type Total

type Total struct {
	Value    int    `json:"value"`
	Relation string `json:"relation"`
}

Jump to

Keyboard shortcuts

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