Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Version = "1.0.0"
)
Functions ¶
This section is empty.
Types ¶
type AcceptFunc ¶ added in v1.0.0
type GinService ¶
type GinService struct { Alone bool Servers []*GinServ AcceptHandler AcceptFunc CloseHandler CloseFunc }
func Init ¶
func Init(addresses string, stopHandler func(bool)) (*GinService, error)
Init Create the gin service when starting in alone or daemon mode; The addresses must not be empty in alone mode, and will be ignored in daemon mode, the addresses' format lookup like "127.0.0.1:8080;127.0.0.1:8081;127.0.0.1:8082"; The stopHandler is the callback when the process is exiting.
func (*GinService) Run ¶
func (service *GinService) Run()
Run begin to start all the listening servers after Init() called.
Click to show internal directories.
Click to hide internal directories.