Back to godoc.org

Package http

v0.0.0-...-80ad457
Latest Go to latest

The latest major version is .

Published: Feb 4, 2020 | License: Unlicense | Module: github.com/javiercbk/ppv-crypto

Index

Constants

const BodyLimit = "12M"

BodyLimit is the upper limit for the http request body size.

func Serve

func Serve(cnf Config, logger *log.Logger, db *sql.DB, deployer *eth.SmartContractDeployer) error

Serve http connections

type Config

type Config struct {
	Address   string
	JWTSecret string
}

Config contains all the configurations to initialize an http server

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier