fixtures

package
v0.0.0-...-ce453ac Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginRequest

type LoginRequest struct {
	Login    string `json:"login" validate:"required"`
	Password string `json:"password" validate:"required"`
}

type LoginResponse

type LoginResponse struct {
	UserID string `json:"user_id"`

	UploadFeaturesURLs UploadFeaturesURLs     `json:"upload_features"`
	Models             map[string]interface{} `json:"model_urls"`
}

func NewLoginResponse

func NewLoginResponse(userID, baseURL, tokenString string, models map[string]interface{}) (*LoginResponse, error)

type ModelURLs

type ModelURLs struct {
	FaceModelURL string
}

type RegisterRequest

type RegisterRequest struct {
	Login    string `json:"login" validate:"required"`
	Password string `json:"password" validate:"required"`
	Name     string `json:"name"`
	Surname  string `json:"surname"`
}

type UploadFeaturesURLs

type UploadFeaturesURLs struct {
	FaceModel string `json:"face_model"`
}

Jump to

Keyboard shortcuts

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