server

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package server Cerberus

The Cerberus is an users' data keeper. The Cerberus encrypts data and pushes it into S3.

Schemes: https
BasePath: /v1
Version: 1.0.1

Produces:
- application/json
Consumes:
- application/json

SecurityDefinitions:
public_key:
     type: apiKey
     name: Public-Key
     in: header
     description: Blockchain account's public key
signature:
     type: apiKey
     name: Signature
     in: header
     description: |-
       Signature of request digest.<br>
       Digest is sha256 sum of request: `{body as is}`+`{request uri}`.<br>
       For example:<br>
       Private key in hex: ```cfe43c70347c7e39084612d9448f3ed86ed733a33a67de35c7e335b3c4edc37d```<br>
       Request url: ```http://localhost/v1/pdv```<br>
       Body: ```{"some":"file"}```<br>
       Digest will be made from ```{"some":"file"}/v1/pdv```<br>
       Digest in hex:<br>
       ```4a1084d05820d60aee9ce600227ca2290ef63e80e5227215b58b023ec6876799```<br>
       Signature in hex:<br>
       ```28eff4676d7839648dda925ba92d447dd7552e177a302f32681fc76278088f9f1fb98051666aa02dd80f7d9b7c01d42ea1abbb3e65de8f1fd04be7b747fb0692```<br>

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRouter

func SetupRouter(s service.Service, r chi.Router, maxBodySize int64, minPDVCount, maxPDVCount uint16)

SetupRouter setups handlers to chi router.

Types

This section is empty.

Jump to

Keyboard shortcuts

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