gingonic

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port string
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(param NewParam) Handler

New generates new gin-gonic handler.

func (*Handler) ExampleGet

func (h *Handler) ExampleGet(g *gin.Context)

ExampleGet handles gin-gonic route to get example data.

func (*Handler) Routes

func (h *Handler) Routes()

Routes registers gin-gonic routes.

func (*Handler) Serve

func (h *Handler) Serve()

Serve serves gin-gonic application.

type NewParam

type NewParam struct {
	Service *service.Service
	Client  *gin.Engine
	Config  *Config
}

Jump to

Keyboard shortcuts

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