feat: 优化web
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"giter.top/smart/pkg/config"
|
||||
)
|
||||
|
||||
type GrpcServer struct {
|
||||
addr string
|
||||
timeout time.Duration
|
||||
}
|
||||
|
||||
func NewGrpcServer(cfg *config.Config) *GrpcServer {
|
||||
return &GrpcServer{
|
||||
addr: cfg.Server.Grpc.Addr,
|
||||
timeout: cfg.Server.Grpc.Timeout,
|
||||
}
|
||||
}
|
||||
func (s *GrpcServer) Run() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *GrpcServer) Stop() error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user