models

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 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 BodyRequestCode

type BodyRequestCode struct {
	Size  int    `json:"size"`
	Query Query  `json:"query"`
	Sort  []Sort `json:"sort"`
}

type BodyRequestCodeNextPage

type BodyRequestCodeNextPage struct {
	Size        int     `json:"size"`
	Query       Query   `json:"query"`
	Sort        []Sort  `json:"sort"`
	SearchAfter []int64 `json:"search_after"`
}

type BodyRequestLawsuit

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

type Bool

type Bool struct {
	Must []Must `json:"must"`
}

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 Hit2NextPage

type Hit2NextPage struct {
	Index  string         `json:"_index"`
	Type   string         `json:"_type"`
	Id     string         `json:"_id"`
	Score  float64        `json:"_score"`
	Source SourceNextPage `json:"_source"`
	Sort   []int64        `json:"sort"`
}

type HitNextPage

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

type Match

type Match struct {
	ClasseCodigo int `json:"classe.codigo,omitempty"`
}

type MatchLawsuit

type MatchLawsuit 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 Must

type Must struct {
	Match Match `json:"match"`
}

type Query

type Query struct {
	Bool Bool `json:"bool"`
}

type QueryLawsuit

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

type ReadCsvCode

type ReadCsvCode struct {
	ClassCode string
	CourtName string
}

type ReadCsvLaawsuit

type ReadCsvLaawsuit struct {
	CNJNumber string
}

type ResponseBodyLawsuit

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

type ResponseBodyNextPage

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

type Shard

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

type Sort

type Sort struct {
	Timestamp `json:"@timestamp"`
}

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:"@TimestampCode"`
	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 SourceNextPage

type SourceNextPage struct {
	Class            Class      `json:"classe"`
	LawsuitNumber    string     `json:"numeroProcesso"`
	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:"@TimestampCode"`
	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 Timestamp

type Timestamp struct {
	Order string `json:"order"`
}

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