server

package
v0.0.0-...-833fa1d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	RequestTimeout time.Duration
	ContextWrap    contextWrapper
	InitWrap       muxInitWrapper
	OAuth2provider fosite.OAuth2Provider
	JWTProvider    *jwt.Provider
	SessionManager *scs.SessionManager
	AuthOption     *middleware.AuthOption
	Logger         *zap.Logger
}

HTTPServer wrapper object

func (*HTTPServer) Run

func (s *HTTPServer) Run(ctx context.Context, address string) (err error)

Run starts a HTTP server and blocks while running if successful. The server will be shutdown when "ctx" is canceled.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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