request

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 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 Barcodes

type Barcodes struct {
	ImageURL      string `json:"image_url,omitempty" validate:"omitempty,url"`
	ImageUploadID string `json:"image_upload_id,omitempty" validate:"-"`
}

func (*Barcodes) Encode

func (b *Barcodes) Encode() (string, error)

func (*Barcodes) Path

func (b *Barcodes) Path() (string, error)

func (*Barcodes) Validate

func (b *Barcodes) Validate() error

type Categories

type Categories struct {
	ImageURL      string  `json:"image_url,omitempty" validate:"omitempty,url"`
	ImageUploadID string  `json:"image_upload_id,omitempty" validate:"-"`
	Language      *string `json:"language,omitempty" validate:"omitempty,oneof=ar bg bs en ca cs"`
	SaveIndex     *string `json:"save_index,omitempty" validate:"-"`
	SaveID        *string `json:"save_id,omitempty" validate:"-"`
	CategorizerID string  `json:"categorizer_id,omitempty" validate:"required"`
}

func (*Categories) Encode

func (c *Categories) Encode() (string, error)

func (*Categories) Path

func (c *Categories) Path() (string, error)

func (*Categories) Validate

func (c *Categories) Validate() error

type Categorizers

type Categorizers struct{}

func (*Categorizers) Encode

func (c *Categorizers) Encode() (string, error)

func (*Categorizers) Path

func (c *Categorizers) Path() (string, error)

func (*Categorizers) Validate

func (c *Categorizers) Validate() error

type Colors

type Colors struct {
	ImageURL             string  `json:"image_url,omitempty" validate:"omitempty,url"`
	ImageUploadID        string  `json:"image_upload_id,omitempty" validate:"-"`
	ExtractOverallColors *bool   `json:"extract_overall_colors,omitempty" validate:"-"`
	ExtractObjectColors  *bool   `json:"extract_object_colors,omitempty" validate:"-"`
	OverallCount         *int    `json:"overall_count,omitempty" validate:"-"`
	SeparatedCount       *int    `json:"separated_count,omitempty" validate:"-"`
	Deterministic        *bool   `json:"deterministic,omitempty" validate:"-"`
	SaveIndex            *string `json:"save_index,omitempty" validate:"-"`
	SaveID               *string `json:"save_id,omitempty" validate:"-"`
	FeaturesType         *string `json:"features_type,omitempty" validate:"omitempty,oneof=overall object"`
}

func (*Colors) Encode

func (c *Colors) Encode() (string, error)

func (*Colors) Path

func (c *Colors) Path() (string, error)

func (*Colors) Validate

func (c *Colors) Validate() error

type Croppings

type Croppings struct {
	ImageURL       string   `json:"image_url,omitempty" validate:"omitempty,url"`
	ImageUploadID  string   `json:"image_upload_id,omitempty" validate:"-"`
	Resolution     string   `json:"resolution" validate:"required"`
	NoScaling      *bool    `json:"no_scaling,omitempty" validate:"-"`
	RectPercentage *float64 `json:"rect_percentage,omitempty" validate:"omitempty,gte=0,lte=1"`
	ImageResult    *bool    `json:"image_result,omitempty" validate:"-"`
}

func (*Croppings) Encode

func (c *Croppings) Encode() (string, error)

func (*Croppings) Path

func (c *Croppings) Path() (string, error)

func (*Croppings) Validate

func (c *Croppings) Validate() error

type FacesDetections

type FacesDetections struct {
	ImageURL      string `json:"image_url,omitempty" validate:"omitempty,url"`
	ImageUploadID string `json:"image_upload_id,omitempty" validate:"-"`
	ReturnFaceID  *bool  `json:"return_face_id,omitempty" validate:"-"`
}

func (*FacesDetections) Encode

func (f *FacesDetections) Encode() (string, error)

func (*FacesDetections) Path

func (f *FacesDetections) Path() (string, error)

func (*FacesDetections) Validate

func (f *FacesDetections) Validate() error

type FacesGroupings

type FacesGroupings struct {
	CallbackURL *string  `json:"callback_url,omitempty" validate:"omitempty,url"`
	Faces       []string `json:"faces,omitempty" validate:"-"`
}

func (*FacesGroupings) Encode

func (f *FacesGroupings) Encode() (string, error)

func (*FacesGroupings) Path

func (f *FacesGroupings) Path() (string, error)

func (*FacesGroupings) Validate

func (f *FacesGroupings) Validate() error

type FacesSimilarity

type FacesSimilarity struct {
	FaceID       string `json:"face_id" validate:"required"`
	SecondFaceID string `json:"second_face_id" validate:"required"`
}

func (*FacesSimilarity) Encode

func (f *FacesSimilarity) Encode() (string, error)

func (*FacesSimilarity) Path

func (f *FacesSimilarity) Path() (string, error)

func (*FacesSimilarity) Validate

func (f *FacesSimilarity) Validate() error

type Tags

type Tags struct {
	ImageURL        string   `json:"image_url,omitempty" validate:"omitempty,url"`
	ImageUploadID   string   `json:"image_upload_id,omitempty" validate:"-"`
	Language        *string  `json:"language,omitempty" validate:"omitempty,oneof=ar bg bs en ca cs"`
	Verbose         *bool    `json:"verbose,omitempty"`
	Limit           *int     `json:"limit,omitempty"`
	Threshold       *float64 `json:"threshold,omitempty"`
	DecreaseParents *bool    `json:"decrease_parents,omitempty"`
	TaggerID        *string  `json:"tagger_id,omitempty"`
}

func (*Tags) Encode

func (t *Tags) Encode() (string, error)

func (*Tags) Path

func (t *Tags) Path() (string, error)

func (*Tags) Validate

func (t *Tags) Validate() error

type Text

type Text struct {
	ImageURL string `json:"image_url" validate:"url"`
}

func (*Text) Encode

func (t *Text) Encode() (string, error)

func (*Text) Path

func (t *Text) Path() (string, error)

func (*Text) Validate

func (t *Text) Validate() error

type Tickets

type Tickets struct {
	TicketID string `json:"ticket_id" validate:"required"`
}

func (*Tickets) Encode

func (f *Tickets) Encode() (string, error)

func (*Tickets) Path

func (f *Tickets) Path() (string, error)

func (*Tickets) Validate

func (f *Tickets) Validate() error

type Uploads

type Uploads struct {
	UploadID string `json:"upload_id,omitempty" validate:"-"`
	FilePath string `json:"file_path,omitempty" validate:"-"`
}

func (*Uploads) Encode

func (u *Uploads) Encode() (string, error)

func (*Uploads) Path

func (u *Uploads) Path() (string, error)

func (*Uploads) Validate

func (u *Uploads) Validate() error

type Usage

type Usage struct {
	History     *bool `json:"history,omitempty" validate:"-"`
	Concurrency *bool `json:"concurrency,omitempty" validate:"-"`
}

func (*Usage) Encode

func (u *Usage) Encode() (string, error)

func (*Usage) Path

func (u *Usage) Path() (string, error)

func (*Usage) Validate

func (u *Usage) Validate() error

Jump to

Keyboard shortcuts

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