api-gateway

command module
v0.0.0-...-cda7898 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

api-gateway

Go Report Card GoDoc

Perform a simple media upload

curl -X POST http://localhost:8080/api/upload?uploadType=media --data-binary "@/path/to/file" -H "Authorization: Bearer <jwt_token>" -H "Content-Type: <file_mime_type>" -H "Content-Disposition: filename=<file_name>"

Perform a simple multipart upload

curl -X POST http://localhost:8080/api/upload?uploadType=multipart -H "Authorization: Bearer <jwt_token>" -H "Content-Type: multipart/form-data" -F "file=@/path/to/file"

Documentation

Overview

Package main is the executable that runs the api-gateway server with its configuration. See Package server doc.go for configuring the server using environment variables.

Directories

Path Synopsis
Package file is used to handle all file-service and download-service related operations.
Package file is used to handle all file-service and download-service related operations.
internal
Package logger is used to create a logger middleware for gin using SetLogger and a given configuration.
Package logger is used to create a logger middleware for gin using SetLogger and a given configuration.
Package quota is used to handle all quota-service related operations.
Package quota is used to handle all quota-service related operations.
Package search is used to handle all search-service related operations.
Package search is used to handle all search-service related operations.
Package server is the api-gateway server, handling all its requests with a HTTP server.
Package server is the api-gateway server, handling all its requests with a HTTP server.
auth
Package auth is used to handle authorization using a gin.HandlerFunc defined by Middleware.
Package auth is used to handle authorization using a gin.HandlerFunc defined by Middleware.
** * __ _ _ * / _| (_) | | * | |_ _ | | ___ ___ * | _| | | | | / _ \ / __| * | | | | | | | __/ \__ \ * |_| |_| |_| \___| |___/ * * Package classification Drive API.
** * __ _ _ * / _| (_) | | * | |_ _ | | ___ ___ * | _| | | | | / _ \ / __| * | | | | | | | __/ \__ \ * |_| |_| |_| \___| |___/ * * Package classification Drive API.
Package upload is used to handle all upload-service related operations.
Package upload is used to handle all upload-service related operations.
Package user is used to define the system's user structure with user.User and extracting user's details in a request's context using ExtractRequestUser.
Package user is used to define the system's user structure with user.User and extracting user's details in a request's context using ExtractRequestUser.

Jump to

Keyboard shortcuts

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