server

command
v0.0.0-...-2e916d8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

api/handlers.go - HTTP handler functions for the REST API endpoints.

This file contains the handler functions that are called when specific API endpoints are hit. It handles request parsing, calls the appropriate service functions, and writes responses.

config/config.go - Configuration loading and management.

This file handles loading configuration from a JSON file and environment variables. It defines the Config struct and functions to load and validate configuration.

main.go - Entry point for the Release Repository Manager application.

This file sets up the configuration, logging, database connections, and starts the REST API server. It also handles graceful shutdown.

internal/model/model.go - Data models and request/response structs.

This file defines the data structures (structs) used throughout the application, including models for software packages, releases, users, and API request/response formats.

internal/repository/repository.go - Release repository management.

This file defines the ReleaseMetadata struct, ReleaseDatabase interface, and JSONReleaseDatabase implementation for managing release metadata and storage.

internal/security/security.go - Security related functionalities.

This file implements security features like authentication, authorization, password hashing, and API key generation.

internal/service/service.go - Business logic and service layer.

This file implements the business logic of the application, interacting with the data layer (repository) and handling service-level operations.

internal/user/user.go - User management and data structures.

This file defines the User struct and interfaces/implementations for user data access and management.

Jump to

Keyboard shortcuts

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