server

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IServer

type IServer interface {
	Run() error
}

type Option

type Option struct {
	ID                    string
	Post                  int
	Timeout               time.Duration
	Signals               []os.Signal
	ServiceRegisterCenter registry.IRegistrar
	ServiceRegisterInfo   *registry.ServiceRegisterInfo
}

func NewDefault

func NewDefault() (*Option, error)

func NewHttpDefault

func NewHttpDefault() (*Option, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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