26 lines
381 B
Go
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
|
|
} |