responses

package
v0.0.0-...-7a8bbb0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKeyResponse

type APIKeyResponse struct {
	Status  int           `json:"status"`
	Message string        `json:"message"`
	Key     models.APIKey `json:"api_key"`
}

type APIKeysResponse

type APIKeysResponse struct {
	Status  int             `json:"status"`
	Message string          `json:"message"`
	Keys    []models.APIKey `json:"api_keys"`
}

type AuthorizationResponse

type AuthorizationResponse struct {
	Status       int    `json:"status"`
	Message      string `json:"message"`
	IsAuthorized bool   `json:"is_authorized"`
}

type ErrorResponse

type ErrorResponse struct {
	Status       int    `json:"status"`
	Message      string `json:"message"`
	IsAuthorized bool   `json:"is_authorized"`
}

type GenericDeletedResponse

type GenericDeletedResponse struct {
	Status    int  `json:"status"`
	IsDeleted bool `json:"is_deleted"`
}

type GenericResponse

type GenericResponse struct {
	Status  int    `json:"status"`
	Message string `json:"message"`
	Success bool   `json:"success"`
}

type GenericSuccessResponse

type GenericSuccessResponse struct {
	Status  int    `json:"status"`
	Message string `json:"message"`
}

type KeyResponse

type KeyResponse struct {
	Status       int           `json:"status"`
	Message      string        `json:"message"`
	IsAuthorized bool          `json:"is_authorized"`
	Key          models.APIKey `json:"key"`
}

type UserDetailsResponse

type UserDetailsResponse struct {
	Status   int                `json:"status"`
	Message  string             `json:"message"`
	Email    string             `json:"email"`
	Id       primitive.ObjectID `bson:"_id" json:"_id,omitempty"`
	UserType models.UserType    `bson:"user_type" json:"user_type"`
}

Jump to

Keyboard shortcuts

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