mirror of
https://github.com/ehang-io/nps.git
synced 2026-03-19 16:12:59 +00:00
add new file
This commit is contained in:
11
component/service/service.go
Normal file
11
component/service/service.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package service
|
||||
|
||||
import "net"
|
||||
|
||||
type HttpService struct {
|
||||
ln net.Listener
|
||||
}
|
||||
|
||||
func NewHttpService(ln net.Listener) *HttpService {
|
||||
return &HttpService{ln: ln}
|
||||
}
|
||||
Reference in New Issue
Block a user