httpserver

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...ServerOption) (server.IServer, error)

Types

type Server

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

func (*Server) Run

func (s *Server) Run() error

type ServerOption

type ServerOption func(s *Server)

func WithServerHttpServer

func WithServerHttpServer(httpServer *http.Server) ServerOption

func WithServerOptionID

func WithServerOptionID(id string) ServerOption

func WithServerOptionPost

func WithServerOptionPost(post int) ServerOption

func WithServerOptionServiceRegisterCenter

func WithServerOptionServiceRegisterCenter(serviceRegisterCenter registry.IRegistrar) ServerOption

func WithServerOptionServiceRegisterInfo

func WithServerOptionServiceRegisterInfo(serviceRegisterInfo *registry.ServiceRegisterInfo) ServerOption

func WithServerOptionSignal

func WithServerOptionSignal(signals []os.Signal) ServerOption

func WithServerOptionTimeout

func WithServerOptionTimeout(timeout time.Duration) ServerOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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