structcup

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package structcup provides various structs to be imported in your projects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthResponse

type AuthResponse struct {
	Message string                 `json:"message"`
	User    map[string]interface{} `json:"user"`
}

AuthResponse represents the response from an authentication operation.

It includes a message and user information.

type ErrorResponse

type ErrorResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

ErrorResponse represents a standard error response from the application.

It includes an error code and a message.

type GoogleLogEntry

type GoogleLogEntry struct {
	Message   string `json:"message"`
	Trace     string `json:"logging.googleapis.com/trace,omitempty"`
	Component string `json:"component,omitempty"`
}

GoogleLogEntry represents a log entry for Google's logging service.

It includes a message, trace, and component information.

type QueryParam added in v1.7.4

type QueryParam struct {
	Key                   string
	Value                 string
	MultipleValuesAllowed bool
}

QueryParam represents a query parameter.

It contains a boolean to indicate if multiple values are allowed for a same key.

type ResponseData

type ResponseData struct {
	Message string `json:"message"`
	ID      string `json:"_id"`
}

ResponseData represents a standard response from the application.

It includes a message and an ID.

Jump to

Keyboard shortcuts

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