server

package
v0.0.0-...-47484d2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RedisCheck

func RedisCheck(cache *redis.Client) healthcheck.Check

RedisCheck 用于让 healthcheck 检查

Types

type HTTPServer

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

HTTPServer .

func (*HTTPServer) Shutdown

func (s *HTTPServer) Shutdown(ctx context.Context) error

Shutdown implementation.

func (*HTTPServer) Start

func (s *HTTPServer) Start()

Start implementation.

type Server

type Server interface {
	Start()
	Shutdown(context.Context) error
}

Server is a program that can start server http request at a specifc port.

func NewHTTPServer

func NewHTTPServer(runmode, port string, guard crypto.JWTGuard) Server

NewHTTPServer NewHttpServer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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