health

package module
Version: v0.0.0-...-3b928be Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check func(c *gin.Context) error

type Error

type Error struct {
	Err string `json:"error"`
}

type Service

type Service struct {
	Check   Check
	Port    int
	Timeout string
	// contains filtered or unexported fields
}

func New

func New(check Check) *Service

func (*Service) Register

func (s *Service) Register()

func (*Service) Serve

func (s *Service) Serve() <-chan *http.Server

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL