structcup

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 1 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 Pool

type Pool struct {
	WorkerChan chan Worker    // Responsible for concurrency limiting
	WaitGroup  sync.WaitGroup // Responsible for synchronization of multiple workers
}

Pool represents a worker pool. It includes a channel of workers for concurrency limiting, and a WaitGroup for synchronizing multiple workers.

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.

type Worker

type Worker struct{}

Worker represents a worker in a worker pool.

Jump to

Keyboard shortcuts

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