server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(key *rsa.PrivateKey, cert *x509.Certificate) func(http.ResponseWriter, *http.Request)

Encode encodes JSON receipt data

func Serve

func Serve(port int, key *rsa.PrivateKey, cert *x509.Certificate)

Serve is for serving rceipt generator

Types

type Response

type Response struct {
	ReceiptData string `json:"receipt-data"`
}

Response is for respond base64 encoded receipt data

Jump to

Keyboard shortcuts

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