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 }