http

package
v0.0.0-...-886a5b3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: BSD-3-Clause Imports: 10 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 {
	// contains filtered or unexported fields
}

func NewHttpServer

func NewHttpServer(ctx context.Context, opts ...HttpServerOption) (*HttpServer, error)

func (*HttpServer) Context

func (s *HttpServer) Context() context.Context

func (*HttpServer) Engine

func (s *HttpServer) Engine() *gin.Engine

func (*HttpServer) Logger

func (s *HttpServer) Logger() *zap.Logger

func (*HttpServer) Start

func (s *HttpServer) Start()

func (*HttpServer) Stop

func (s *HttpServer) Stop()

type HttpServerOption

type HttpServerOption interface {
	// contains filtered or unexported methods
}

func WithAddr

func WithAddr(addr string) HttpServerOption

func WithAppName

func WithAppName(name string) HttpServerOption

func WithDebug

func WithDebug(debug bool) HttpServerOption

func WithLogger

func WithLogger(logger *zap.Logger) HttpServerOption

func WithTLS

func WithTLS(certFile, keyFile string) HttpServerOption

func WithTLSConfig

func WithTLSConfig(tlsConfig *tls.Config) HttpServerOption

Directories

Path Synopsis
core
api
web
edge
api
web
jwt

Jump to

Keyboard shortcuts

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