server

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package server Cerberus

The Cerberus is an users' data keeper. The Cerberus encrypts data and pushes it into [ipfs](https://ipfs.io)

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: 0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20
          Request url: localhost/v1/pdv/123-321
          Body: {"some":"file"}
          Digest will be made from `{"some":"file"}v1/pdv/123-321`
          Digest in hex: 772d91d6dd8ff9c93cbd3bc888825f932964b301b32581c1e1dc36cdb5a5d869

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