http

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package http provides the logic of the webserver

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRemoteIP

func GetRemoteIP(r *http.Request) string

GetRemoteIP of http Request

func JSONRequest

func JSONRequest(url string, value interface{}) error

func Read

func Read(r *http.Request, to interface{}) (err error)

Read data from a http request via json format (input)

func Write

func Write(w http.ResponseWriter, data interface{})

Write data as json to a http response (output)

Types

This section is empty.

Jump to

Keyboard shortcuts

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