Files
smart-go/internal/server/grpc.go
T
2026-04-23 18:58:13 +08:00

26 lines
381 B
Go

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
}