go_service

package module
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 3 Imported by: 5

README

go-service

Some basic gin service utils.

Documentation

Index

Constants

View Source
const StartKey = "start"

Variables

This section is empty.

Functions

func SetStart

func SetStart(c *gin.Context)

Types

type Middleware added in v0.0.16

type Middleware interface {
	Handler() gin.HandlerFunc
	Registerable
}

type Middlewares added in v0.0.16

type Middlewares []Middleware

func (Middlewares) Apply added in v0.0.16

func (middlewares Middlewares) Apply(router *gin.Engine)

func (Middlewares) Register added in v0.0.16

func (middlewares Middlewares) Register()

type Registerable added in v0.0.16

type Registerable interface {
	Register()
}

type Registerables added in v0.0.16

type Registerables []Registerable

func (Registerables) Register added in v0.0.16

func (registerables Registerables) Register()

type Service

type Service interface {
	Serve() <-chan *http.Server
	Registerable
}

type Services added in v0.0.16

type Services []Service

func (Services) Register added in v0.0.16

func (services Services) Register()

Directories

Path Synopsis
health module
metrics module
middleware module
contenttyper Module
logger Module
metrics Module
ratelimiter Module
recovery Module

Jump to

Keyboard shortcuts

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