server

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook added in v1.0.0

type Hook interface {
	BeforeServe(ctx context.Context) error
	AfterServe(ctx context.Context) error
	BeforeShutdown(ctx context.Context) error
	AfterShutdown(ctx context.Context) error
}

Hooks previous and post hooks

type Server

type Server interface {
	Name() string                       // server name
	Serve(ctx context.Context) error    // start server
	Shutdown(ctx context.Context) error // gracefully shutdown server
}

Server

Directories

Path Synopsis
mid/ginlog
Package ginlog is gin server logger middleware.
Package ginlog is gin server logger middleware.
mid/ginsession
Package ginsession is gin server session middleware.
Package ginsession is gin server session middleware.

Jump to

Keyboard shortcuts

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