server

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 21 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.0

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

Security:
- public_key:
- signature:

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.
       Digest is sha256 sum of request: {body as is}+{request uri}.
       For example:
          Private key in hex: cfe43c70347c7e39084612d9448f3ed86ed733a33a67de35c7e335b3c4edc37d
          Request url: http://localhost/v1/pdv
          Body: {"some":"file"}
          Digest will be made from `{"some":"file"}/v1/pdv`
          Digest in hex:
            4a1084d05820d60aee9ce600227ca2290ef63e80e5227215b58b023ec6876799
          Signature in hex:
            28eff4676d7839648dda925ba92d447dd7552e177a302f32681fc76278088f9f1fb98051666aa02dd80f7d9b7c01d42ea1abbb3e65de8f1fd04be7b747fb0692

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)

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