GophKeeper

module
v0.0.0-...-2db41fb Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0

README

GophKeeper

Working with HTTPS

To run the client in HTTPS mode, you need to provide flags or environment variables:

client -addr "https://localhost" -crypto-crt "*.crt" -crypto-key "*.key" -crypto-ca "*.key"

where:

  • -addr is the server's address
  • -crypto-ca is the key used to sign the certificates
  • -crypto-crt is the certificate
  • -crypto-key is the client's key
To run the server in HTTPS mode, you need to provide flags or environment variables:

server -addr ":443" -crypto-crt "*.crt" -crypto-key "*.key" -dns "user=postgres password=12345 host=localhost port=5433 dbname=gophkeep"

where:

  • -addr is the server's address
  • -crypto-crt is the certificate
  • -crypto-key is the server's key
  • -dns is the connection string to the database

Working with gRPC

To run the client in gRPC mode, you need to provide flags or environment variables:

client -grpc-addr ":3200"

where:

  • -grpc-addr is the server's address
To run the server in gRPC mode, you need to provide flags or environment variables:

server -grpc-addr ":3200" -dns "user=postgres password=12345 host=localhost port=5433 dbname=gophkeep"

where:

  • -grpc-addr is the server's address
  • -dns is the connection string to the database

Directories

Path Synopsis
cmd
client
Package main contains the client launch.
Package main contains the client launch.
server
Package main содержит запуск сервера.
Package main содержит запуск сервера.
internal
client/api
Package api implements a client for interacting with the server.
Package api implements a client for interacting with the server.
client/config
Package config implements the necessary structures and parsing of the server configuration
Package config implements the necessary structures and parsing of the server configuration
client/console
Package console реализует модуль для парсинга ввода консоли
Package console реализует модуль для парсинга ввода консоли
models
Package models contains structures that describe our domain entities right now all data is strings, we should replace them with correct types + proper validation
Package models contains structures that describe our domain entities right now all data is strings, we should replace them with correct types + proper validation
server
Package server contains the implementation of our data storage server.
Package server contains the implementation of our data storage server.
server/auth
Package auth Provides functionality for JWT authentication + middleware to support its operation
Package auth Provides functionality for JWT authentication + middleware to support its operation
server/auth/jwt
Package jwt provides functionality for JWT authentication
Package jwt provides functionality for JWT authentication
server/config
Package config implements the necessary structures and parsing for server configuration
Package config implements the necessary structures and parsing for server configuration
server/gprcserver
Package gprcserver contains the implementation of the server via gRPC
Package gprcserver contains the implementation of the server via gRPC
server/httpserver
Package httpserver implements HTTP handlers using chi.NewRouter
Package httpserver implements HTTP handlers using chi.NewRouter
server/mocks/auth/jwt
Package mock_jwt is a generated GoMock package.
Package mock_jwt is a generated GoMock package.
server/mocks/storage
Package mock_storage is a generated GoMock package.
Package mock_storage is a generated GoMock package.
server/storage
Package storage - реализует чтение запись в базу всех основных сущностей, Карты, Логины, и тд.
Package storage - реализует чтение запись в базу всех основных сущностей, Карты, Логины, и тд.
Package swagger GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package swagger GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag

Jump to

Keyboard shortcuts

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