func (c *GrpcServerConfig) SetWithMap(m g.Map) error {
	return gconv.Struct(m, c)
}
SetWithMap changes current configuration with map.
This is commonly used for changing several configurations of current object.
package krpc
import (
	"github.com/gogf/gf/frame/g"
	"github.com/gogf/gf/os/glog"
	"github.com/gogf/gf/util/gconv"
	"google.golang.org/grpc"
)
type GrpcServerConfig struct {
	Address          string               
	AppId            string               
	Logger           *glog.Logger         
	LogPath          string               
	LogStdout        bool                 
	ErrorLogEnabled  bool                 
	ErrorLogPattern  string               
	AccessLogEnabled bool                 
	AccessLogPattern string               
	Options          []grpc.ServerOption  
}
func (s krpcServer) NewGrpcServerConfig() *GrpcServerConfig {
	config := &GrpcServerConfig{
		Logger:           glog.New(),
		LogStdout:        true,
		ErrorLogEnabled:  true,
		ErrorLogPattern:  "error-{Ymd}.log",
		AccessLogEnabled: false,
		AccessLogPattern: "access-{Ymd}.log",
	}
	if g.Cfg().Available() {
		err := g.Cfg().GetVar(configNodeNameGrpcServer).Struct(&config)
		if err != nil {
			g.Log().Error(err)
		}
	}
	return config
}