bootstrap

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(e *gin.Engine)

Bootstrap bootstraps tonic with gin engine. This must be called after ALL tonic-enabled handlers have been added to the gin engine.

This retrieves the routes from gin engine and populates tonic handler with route information (method, path).

Types

type DummyResponseWriter

type DummyResponseWriter struct{}

DummyResponseWriter is a dummy http.ResponseWriter implementation.

func (*DummyResponseWriter) Header

func (d *DummyResponseWriter) Header() http.Header

Header makes DummyResponseWriter implement http.ResponseWriter.

func (*DummyResponseWriter) Write

func (d *DummyResponseWriter) Write([]byte) (int, error)

Write makes DummyResponseWriter implement http.ResponseWriter.

func (*DummyResponseWriter) WriteHeader

func (d *DummyResponseWriter) WriteHeader(int)

WriteHeader makes DummyResponseWriter implement http.ResponseWriter.

Jump to

Keyboard shortcuts

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