// Config requests base factory config and convert it to gRPC protocol.
Config requests base factory config and convert it to gRPC protocol.
// Config requests base factory config and convert it to gRPC protocol .
func (s *cacheServer) Config(ctx context.Context, empty *types.Empty) (*pb.GrpcVMConfig, error) {
	if jsonVMConfig == nil {
		config := s.factory.Config()
		var err error
		jsonVMConfig, err = config.ToGrpc()
		if err != nil {
			return nil, err
		}
	}
	return jsonVMConfig, nil
}
func ( s * cacheServer ) Config ( ctx context . Context , empty * types . Empty ) ( * pb . GrpcVMConfig , error ) { if jsonVMConfig == nil { config := s . factory . Config ( ) var err error jsonVMConfig , err = config . ToGrpc ( ) if err != nil { return nil , err } } return jsonVMConfig , nil }
Config requests base factory config and convert it to gRPC protocol.
Config requests base factory config and convert it to gRPC protocol .