http

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log tr.Interface, uc usecase.Interface, tracer opentracing.Tracer) delivery.Interface

func Read

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

Read post data according with Content-Type provided in header by default system read json

func Send

func Send(w http.ResponseWriter, ct string, req interface{}, status int, l tr.Interface, er error)

send RESTfull convention with requested context type in header field in default Content-Type cases handle json

Types

This section is empty.

Jump to

Keyboard shortcuts

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